Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning in test_enum #93216

Closed
tirkarthi opened this issue May 25, 2022 · 2 comments
Closed

DeprecationWarning in test_enum #93216

tirkarthi opened this issue May 25, 2022 · 2 comments
Assignees
Labels
3.12 bugs and security fixes tests Tests in the Lib/test dir

Comments

@tirkarthi
Copy link
Member

Bug report

DeprecationWarning in test_enum due to changes in #25670 with tests being now ran on Python 3.12

./python -Wall -m test test_enum
0:00:00 load avg: 1.01 Run tests sequentially
0:00:00 load avg: 1.01 [1/1] test_enum
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:2967: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertFalse('BLACK' in Color)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)
/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or
False depending on whether the value is a member or the value of a member
  self.assertTrue(self.source_values[0] in MainEnum)

== Tests result: SUCCESS ==

1 test OK.

Total duration: 556 ms
Tests result: SUCCESS

Your environment

  • CPython versions tested on: Python 3.12.0a0 (heads/main:9485a0dbdd, May 25 2022, 17:36:25) [GCC 9.4.0] on linux
  • Operating system and architecture: Linux
@tirkarthi tirkarthi added tests Tests in the Lib/test dir 3.12 bugs and security fixes labels May 25, 2022
@corona10
Copy link
Member

See #88123

cc @ethanfurman

@tirkarthi
Copy link
Member Author

Thanks @corona10 , I searched for test_enum in GitHub and didn't come across the linked issue. Feel free to close this if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 bugs and security fixes tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

3 participants