Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efdc16f commit 4c094e5Copy full SHA for 4c094e5
1 file changed
Lib/test/test_pydoc.py
@@ -478,6 +478,8 @@ def test_not_here(self):
478
self.assertEqual(expected, result,
479
"documentation for missing module found")
480
481
+ @unittest.skipIf(sys.flags.optimize >= 2,
482
+ 'Docstrings are omitted with -OO and above')
483
def test_not_ascii(self):
484
result = run_pydoc('test.test_pydoc.nonascii', PYTHONIOENCODING='ascii')
485
encoded = nonascii.__doc__.encode('ascii', 'backslashreplace')
@@ -562,6 +564,8 @@ def test_synopsis(self):
562
564
synopsis = pydoc.synopsis(TESTFN, {})
563
565
self.assertEqual(synopsis, 'line 1: h\xe9')
566
567
568
569
def test_synopsis_sourceless(self):
570
expected = os.__doc__.splitlines()[0]
571
filename = os.__cached__
0 commit comments