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.
2 parents 71c6f44 + 4c094e5 commit 3de4aaeCopy full SHA for 3de4aae
1 file changed
Lib/test/test_pydoc.py
@@ -467,6 +467,8 @@ def test_not_here(self):
467
self.assertEqual(expected, result,
468
"documentation for missing module found")
469
470
+ @unittest.skipIf(sys.flags.optimize >= 2,
471
+ 'Docstrings are omitted with -OO and above')
472
def test_not_ascii(self):
473
result = run_pydoc('test.test_pydoc.nonascii', PYTHONIOENCODING='ascii')
474
encoded = nonascii.__doc__.encode('ascii', 'backslashreplace')
@@ -551,6 +553,8 @@ def test_synopsis(self):
551
553
synopsis = pydoc.synopsis(TESTFN, {})
552
554
self.assertEqual(synopsis, 'line 1: h\xe9')
555
556
557
558
def test_synopsis_sourceless(self):
559
expected = os.__doc__.splitlines()[0]
560
filename = os.__cached__
0 commit comments