From f279305e5a264994ead41651fda94a48d53ea53e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 4 Dec 2022 14:28:56 +0200 Subject: [PATCH] [3.10] gh-60203: Always pass True/False as boolean arguments in tests (GH-99983) Unless we explicitly test non-bool values.. (cherry picked from commit 76f43fc09af29401cc0cec7710b03e4dbf8a4578) Co-authored-by: Serhiy Storchaka --- Lib/test/_test_multiprocessing.py | 2 +- Lib/test/test_call.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index be174aae3d6384..57eada634c4459 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -5982,5 +5982,5 @@ def test_semlock_subclass(self): 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) diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py index eee269093b2784..1bf1f79fdad9ee 100644 --- a/Lib/test/test_call.py +++ b/Lib/test/test_call.py @@ -546,7 +546,7 @@ def __index__(self): 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.