mirror of
https://github.com/python/cpython.git
synced 2025-11-04 03:44:55 +00:00
(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:
commit
0f69e76204
1 changed files with 1 additions and 3 deletions
|
|
@ -1528,9 +1528,7 @@ class TestStdLib(unittest.TestCase):
|
||||||
helper = pydoc.Helper(output=output)
|
helper = pydoc.Helper(output=output)
|
||||||
helper(self.Color)
|
helper(self.Color)
|
||||||
result = output.getvalue().strip()
|
result = output.getvalue().strip()
|
||||||
if result != expected_text:
|
self.assertEqual(result, expected_text)
|
||||||
print_diffs(expected_text, result)
|
|
||||||
self.fail("outputs are not equal, see diff above")
|
|
||||||
|
|
||||||
def test_inspect_getmembers(self):
|
def test_inspect_getmembers(self):
|
||||||
values = dict((
|
values = dict((
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue