From: Victor Stinner Date: Mon, 16 Jun 2014 20:48:43 +0000 (+0200) Subject: Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written by X-Git-Tag: v3.4.2rc1~377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b0432d1908424a9c6d471f0f31e9c9e3d5d97af;p=python 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. --- diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index b8ef632a0d..f1f80631eb 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -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((