mirror of
https://github.com/python/cpython.git
synced 2025-10-20 16:33:53 +00:00
gh-136438: Make sure test.test_pydoc.test_pydoc pass with all optimization levels (#136479)
test_pydoc.test_pydoc now passes with -OO
This commit is contained in:
parent
5f91d5d9a4
commit
bb85af343f
1 changed files with 1 additions and 1 deletions
|
|
@ -1413,7 +1413,7 @@ def test_special_form(self):
|
|||
self.assertIn('NoReturn = typing.NoReturn', doc)
|
||||
self.assertIn(typing.NoReturn.__doc__.strip().splitlines()[0], doc)
|
||||
else:
|
||||
self.assertIn('NoReturn = class _SpecialForm(_Final)', doc)
|
||||
self.assertIn('NoReturn = class _SpecialForm(_Final, _NotIterable)', doc)
|
||||
|
||||
def test_typing_pydoc(self):
|
||||
def foo(data: typing.List[typing.Any],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue