mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-95454: Replace truthy/falsy with true/false (GH-95456)
This commit is contained in:
parent
0956b6d9c4
commit
cd26595232
8 changed files with 15 additions and 13 deletions
|
@ -449,8 +449,8 @@ class Test_TextTestResult(unittest.TestCase):
|
|||
'(' + __name__ + '.Test_TextTestResult.testGetSubTestDescriptionWithoutDocstringAndParams) '
|
||||
'(<subtest>)')
|
||||
|
||||
def testGetSubTestDescriptionForFalsyValues(self):
|
||||
expected = 'testGetSubTestDescriptionForFalsyValues (%s.Test_TextTestResult.testGetSubTestDescriptionForFalsyValues) [%s]'
|
||||
def testGetSubTestDescriptionForFalseValues(self):
|
||||
expected = 'testGetSubTestDescriptionForFalseValues (%s.Test_TextTestResult.testGetSubTestDescriptionForFalseValues) [%s]'
|
||||
result = unittest.TextTestResult(None, True, 1)
|
||||
for arg in [0, None, []]:
|
||||
with self.subTest(arg):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue