Issue 17773: test_pydoc fails with the installed testsuite (2.7) (original) (raw)

these are failures not seen with 3.x, running with -S doesn't help.

test_pydoc test test_pydoc failed -- multiple errors occurred; run in verbose mode for details 1 test failed: test_pydoc Re-running failed tests in verbose mode Re-running test 'test_pydoc' in verbose mode test_html_doc (test.test_pydoc.PyDocDocTest) ... --- expected +++ got @@ -19 +19 @@ -
B +
B @@ -22 +22 @@ -
A +
A @@ -56,12 +55,0 @@ - - 
-Functions

-        -

doc_func()
This function solves all of the world's problems:
-hunger
-lack of Python
-war

FAIL test_input_strip (test.test_pydoc.PyDocDocTest) ... ok test_issue8225 (test.test_pydoc.PyDocDocTest) ... ok test_non_str_name (test.test_pydoc.PyDocDocTest) ... ok test_not_here (test.test_pydoc.PyDocDocTest) ... ok test_stripid (test.test_pydoc.PyDocDocTest) ... ok test_text_doc (test.test_pydoc.PyDocDocTest) ... --- expected +++ got @@ -34,9 +33,0 @@ -FUNCTIONS - doc_func() - This function solves all of the world's problems: - hunger - lack of Python - war

FAIL test_apropos_with_bad_package (test.test_pydoc.PydocImportTest) ... FAIL test_apropos_with_unreadable_dir (test.test_pydoc.PydocImportTest) ... FAIL test_badimport (test.test_pydoc.PydocImportTest) ... ok test_class (test.test_pydoc.TestDescriptions) ... ok test_classic_class (test.test_pydoc.TestDescriptions) ... ok test_module (test.test_pydoc.TestDescriptions) ... ok test_namedtuple_public_underscore (test.test_pydoc.TestDescriptions) ... ERROR test_builtin (test.test_pydoc.TestHelper) ... ok test_keywords (test.test_pydoc.TestHelper) ... test test_pydoc failed -- multiple errors occurred ok

====================================================================== ERROR: test_namedtuple_public_underscore (test.test_pydoc.TestDescriptions)

Traceback (most recent call last): File "/usr/lib/python2.7/test/test_pydoc.py", line 383, in test_namedtuple_public_underscore help(NT) NameError: global name 'help' is not defined

====================================================================== FAIL: test_html_doc (test.test_pydoc.PyDocDocTest)

Traceback (most recent call last): File "/usr/lib/python2.7/test/test_pydoc.py", line 248, in test_html_doc self.fail("outputs are not equal, see diff above") AssertionError: outputs are not equal, see diff above

====================================================================== FAIL: test_text_doc (test.test_pydoc.PyDocDocTest)

Traceback (most recent call last): File "/usr/lib/python2.7/test/test_pydoc.py", line 259, in test_text_doc self.fail("outputs are not equal, see diff above") AssertionError: outputs are not equal, see diff above

====================================================================== FAIL: test_apropos_with_bad_package (test.test_pydoc.PydocImportTest)

Traceback (most recent call last): File "/usr/lib/python2.7/test/test_pydoc.py", line 341, in test_apropos_with_bad_package result = run_pydoc('zqwykjv', '-k', PYTHONPATH=TESTFN) File "/usr/lib/python2.7/test/test_pydoc.py", line 196, in run_pydoc rc, out, err = assert_python_ok('-B', pydoc.file, *args, **env) File "/usr/lib/python2.7/test/script_helper.py", line 55, in assert_python_ok return _assert_python(True, *args, **env_vars) File "/usr/lib/python2.7/test/script_helper.py", line 47, in _assert_python "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore'))) AssertionError: Process return code is -11, stderr follows:

====================================================================== FAIL: test_apropos_with_unreadable_dir (test.test_pydoc.PydocImportTest)

Traceback (most recent call last): File "/usr/lib/python2.7/test/test_pydoc.py", line 351, in test_apropos_with_unreadable_dir result = run_pydoc('zqwykjv', '-k', PYTHONPATH=TESTFN) File "/usr/lib/python2.7/test/test_pydoc.py", line 196, in run_pydoc rc, out, err = assert_python_ok('-B', pydoc.file, *args, **env) File "/usr/lib/python2.7/test/script_helper.py", line 55, in assert_python_ok return _assert_python(True, *args, **env_vars) File "/usr/lib/python2.7/test/script_helper.py", line 47, in _assert_python "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore'))) AssertionError: Process return code is -11, stderr follows:


Ran 16 tests in 3.323s

FAILED (failures=4, errors=1) [47527 refs]