Skip to content

Commit 24b92d2

Browse files
committed
test_pydoc.test_pydoc now passes with -OO
1 parent 591abcc commit 24b92d2

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
@@ -1461,7 +1461,7 @@ def test_special_form(self):
14611461
self.assertIn('NoReturn = typing.NoReturn', doc)
14621462
self.assertIn(typing.NoReturn.__doc__.strip().splitlines()[0], doc)
14631463
else:
1464-
self.assertIn('NoReturn = class _SpecialForm(_Final)', doc)
1464+
self.assertIn('NoReturn = class _SpecialForm(_Final, _NotIterable)', doc)
14651465

14661466
def test_typing_pydoc(self):
14671467
def foo(data: typing.List[typing.Any],

0 commit comments

Comments
 (0)