]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136438: Make sure test.test_pydoc.test_pydoc pass with all optimization levels...
authorArseniy Krupchik <96835169+Grivvus@users.noreply.github.com>
Sun, 12 Oct 2025 22:17:41 +0000 (02:17 +0400)
committerGitHub <noreply@github.com>
Sun, 12 Oct 2025 22:17:41 +0000 (15:17 -0700)
test_pydoc.test_pydoc now passes with -OO

Lib/test/test_pydoc/test_pydoc.py

index 5aa8d92057e3d7016d049b7f063063cce184b974..c640416327efbff9340dc35b8ecc954e29c6a532 100644 (file)
@@ -1413,7 +1413,7 @@ class TestDescriptions(unittest.TestCase):
             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],