Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac78128

Browse files
[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 76f43fc)
1 parent e2209cb commit ac78128

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5982,5 +5982,5 @@ def test_semlock_subclass(self):
59825982
class SemLock(_multiprocessing.SemLock):
59835983
pass
59845984
name = f'test_semlock_subclass-{os.getpid()}'
5985-
s = SemLock(1, 0, 10, name, 0)
5985+
s = SemLock(1, 0, 10, name, False)
59865986
_multiprocessing.sem_unlink(name)

Lib/test/test_call.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def __index__(self):
546546
self.kwargs.clear()
547547
gc.collect()
548548
return 0
549-
x = IntWithDict(dont_inherit=IntWithDict())
549+
x = IntWithDict(optimize=IntWithDict())
550550
# We test the argument handling of "compile" here, the compilation
551551
# itself is not relevant. When we pass flags=x below, x.__index__() is
552552
# called, which changes the keywords dict.

0 commit comments

Comments
 (0)