summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-16 20:48:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-16 20:48:43 (GMT)
commit4b0432d1908424a9c6d471f0f31e9c9e3d5d97af (patch)
tree40d75fd7a4f00c66c614a5b4a937b84a3156b947 /Lib/test
parent0aecc18bab0495529582acdbb3271c148b329aa8 (diff)
downloadcpython-4b0432d1908424a9c6d471f0f31e9c9e3d5d97af.zip
cpython-4b0432d1908424a9c6d471f0f31e9c9e3d5d97af.tar.gz
cpython-4b0432d1908424a9c6d471f0f31e9c9e3d5d97af.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_enum.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py
index b8ef632..f1f8063 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((