]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-60203: Always pass True/False as boolean arguments in tests (GH-99983)...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Dec 2022 13:08:24 +0000 (15:08 +0200)
committerGitHub <noreply@github.com>
Sun, 4 Dec 2022 13:08:24 +0000 (15:08 +0200)
Unless we explicitly test non-bool values.
(cherry picked from commit 76f43fc09af29401cc0cec7710b03e4dbf8a4578)

Lib/test/_test_multiprocessing.py
Lib/test/test_call.py

index be174aae3d63846c6aeae451529a3e13354d046e..57eada634c44598bfa5894df194888d21c4500e3 100644 (file)
@@ -5982,5 +5982,5 @@ class SemLockTests(unittest.TestCase):
         class SemLock(_multiprocessing.SemLock):
             pass
         name = f'test_semlock_subclass-{os.getpid()}'
-        s = SemLock(1, 0, 10, name, 0)
+        s = SemLock(1, 0, 10, name, False)
         _multiprocessing.sem_unlink(name)
index eee269093b2784a7d55b8be559de3098b53434c0..1bf1f79fdad9ee160a67a3bf456f84648ffd7d7a 100644 (file)
@@ -546,7 +546,7 @@ class FastCallTests(unittest.TestCase):
                 self.kwargs.clear()
                 gc.collect()
                 return 0
-        x = IntWithDict(dont_inherit=IntWithDict())
+        x = IntWithDict(optimize=IntWithDict())
         # We test the argument handling of "compile" here, the compilation
         # itself is not relevant. When we pass flags=x below, x.__index__() is
         # called, which changes the keywords dict.