mirror of
https://github.com/python/cpython.git
synced 2025-11-03 15:11:34 +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('NoReturn = typing.NoReturn', doc)
|
||||||
self.assertIn(typing.NoReturn.__doc__.strip().splitlines()[0], doc)
|
self.assertIn(typing.NoReturn.__doc__.strip().splitlines()[0], doc)
|
||||||
else:
|
else:
|
||||||
self.assertIn('NoReturn = class _SpecialForm(_Final)', doc)
|
self.assertIn('NoReturn = class _SpecialForm(_Final, _NotIterable)', doc)
|
||||||
|
|
||||||
def test_typing_pydoc(self):
|
def test_typing_pydoc(self):
|
||||||
def foo(data: typing.List[typing.Any],
|
def foo(data: typing.List[typing.Any],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue