mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[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 76f43fc09a)
This commit is contained in:
parent
e2209cb6ec
commit
ac78128271
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue