Skip to content

Commit bb85af3

Browse files
authored
gh-136438: Make sure test.test_pydoc.test_pydoc pass with all optimization levels (#136479)
test_pydoc.test_pydoc now passes with -OO
1 parent 5f91d5d commit bb85af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_pydoc/test_pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ def test_special_form(self):
14131413
self.assertIn('NoReturn = typing.NoReturn', doc)
14141414
self.assertIn(typing.NoReturn.__doc__.strip().splitlines()[0], doc)
14151415
else:
1416-
self.assertIn('NoReturn = class _SpecialForm(_Final)', doc)
1416+
self.assertIn('NoReturn = class _SpecialForm(_Final, _NotIterable)', doc)
14171417

14181418
def test_typing_pydoc(self):
14191419
def foo(data: typing.List[typing.Any],

0 commit comments

Comments
 (0)