https://github.com/python/cpython/commit/bb85af343f331b104e3bca685e8f96e60bba8bc0
commit: bb85af343f331b104e3bca685e8f96e60bba8bc0
branch: main
author: Arseniy Krupchik <[email protected]>
committer: hauntsaninja <[email protected]>
date: 2025-10-12T15:17:41-07:00
summary:

gh-136438: Make sure test.test_pydoc.test_pydoc pass with all optimization 
levels (#136479)

test_pydoc.test_pydoc now passes with -OO

files:
M Lib/test/test_pydoc/test_pydoc.py

diff --git a/Lib/test/test_pydoc/test_pydoc.py 
b/Lib/test/test_pydoc/test_pydoc.py
index 5aa8d92057e3d7..c640416327efbf 100644
--- a/Lib/test/test_pydoc/test_pydoc.py
+++ b/Lib/test/test_pydoc/test_pydoc.py
@@ -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],

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to