gh-95454: Replace truthy/falsy with true/false (GH-95456)

This commit is contained in:
Robert O'Shea 2022-07-30 08:42:21 +01:00 committed by GitHub
parent 0956b6d9c4
commit cd26595232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 13 deletions

View file

@ -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):