mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-43957: [Enum] Deprecate `TypeError` from containment checks. (GH-25670)
In 3.12 ``True`` or ``False`` will be returned for all containment checks, with ``True`` being returned if the value is either a member of that enum or one of its members' value.
This commit is contained in:
parent
9aea31dedd
commit
6bd9288b80
5 changed files with 148 additions and 36 deletions
|
|
@ -1323,7 +1323,7 @@ class StressTest(unittest.TestCase):
|
|||
# race condition, check it.
|
||||
self.assertIsInstance(cm.unraisable.exc_value, OSError)
|
||||
self.assertIn(
|
||||
f"Signal {signum} ignored due to race condition",
|
||||
f"Signal {signum:d} ignored due to race condition",
|
||||
str(cm.unraisable.exc_value))
|
||||
ignored = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue