From 4b0432d1908424a9c6d471f0f31e9c9e3d5d97af Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 16 Jun 2014 22:48:43 +0200 Subject: [PATCH] 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. --- Lib/test/test_enum.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index b8ef632a0db..f1f80631eb5 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((