summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_signal.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2021-04-27 20:05:08 (GMT)
committerGitHub <noreply@github.com>2021-04-27 20:05:08 (GMT)
commit6bd9288b805c765ec2433f66aa4d82e05767325f (patch)
tree5810c0de5a0086fec858ccf222cf1d42d459ba96 /Lib/test/test_signal.py
parent9aea31deddf7458be3546f72185740f3cd06687f (diff)
downloadcpython-6bd9288b805c765ec2433f66aa4d82e05767325f.zip
cpython-6bd9288b805c765ec2433f66aa4d82e05767325f.tar.gz
cpython-6bd9288b805c765ec2433f66aa4d82e05767325f.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r--Lib/test/test_signal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 06b644e..daecf19 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -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