Skip to content

Commit 595b95c

Browse files
committed
fixes for missing dunder doctest
1 parent 2c34fba commit 595b95c

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Lib/test/test_pydoc/test_pydoc.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -523,11 +523,9 @@ def test_dunder_main(self):
523523
'''"__name__ == '__main__'"'''.encode('utf-8'))
524524

525525
def test_dunder_not_here(self):
526-
missing_module = "__dict__"
527-
result = str(run_pydoc_fail(missing_module), 'ascii')
528-
expected = missing_pattern(missing_module, dunder=True)
529-
self.assertEqual(expected, result,
530-
"documentation for missing module found")
526+
result = str(run_pydoc_fail("__dict__"), 'ascii')
527+
expected = missing_pattern("__dict__", dunder=True)
528+
self.assertEqual(expected, result)
531529

532530
@requires_docstrings
533531
def test_not_ascii(self):

0 commit comments

Comments
 (0)