-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
Description
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