Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written by
Claudiu Popa. The print_diffs() function was not defined, using the assertEqual() is more reliable.
This commit is contained in:
parent
0aecc18bab
commit
4b0432d190
|
@ -1528,9 +1528,7 @@ class TestStdLib(unittest.TestCase):
|
|||
helper = pydoc.Helper(output=output)
|
||||
helper(self.Color)
|
||||
result = output.getvalue().strip()
|
||||
if result != expected_text:
|
||||
print_diffs(expected_text, result)
|
||||
self.fail("outputs are not equal, see diff above")
|
||||
self.assertEqual(result, expected_text)
|
||||
|
||||
def test_inspect_getmembers(self):
|
||||
values = dict((
|
||||
|
|
Loading…
Reference in New Issue