summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-12-04 13:08:24 (GMT)
committerGitHub <noreply@github.com>2022-12-04 13:08:24 (GMT)
commitac781282712ab39cd6339e3c780c11e0027d22ab (patch)
treec364baf1b68cc042d0c3a58ba570298a345864a2 /Lib/test
parente2209cb6ecb094ecbf7d999fd2b59f64326c1559 (diff)
downloadcpython-ac781282712ab39cd6339e3c780c11e0027d22ab.zip
cpython-ac781282712ab39cd6339e3c780c11e0027d22ab.tar.gz
cpython-ac781282712ab39cd6339e3c780c11e0027d22ab.tar.bz2
[3.10] gh-60203: Always pass True/False as boolean arguments in tests (GH-99983) (GH-99989)
Unless we explicitly test non-bool values. (cherry picked from commit 76f43fc09af29401cc0cec7710b03e4dbf8a4578)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/_test_multiprocessing.py2
-rw-r--r--Lib/test/test_call.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index be174aa..57eada6 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -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)
diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py
index eee2690..1bf1f79 100644
--- a/Lib/test/test_call.py
+++ b/Lib/test/test_call.py
@@ -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.