(Merge 3.4) 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:
Victor Stinner 2014-06-16 22:51:36 +02:00
commit 0f69e76204
1 changed files with 1 additions and 3 deletions

View File

@ -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((