This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_pydoc fails
Type: Stage: resolved
Components: Tests Versions: Python 3.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: hsiehr, nanjekyejoannah, ned.deily
Priority: normal Keywords:

Created on 2015-05-09 19:46 by hsiehr, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg242838 - (view) Author: Rebecca Hsieh (hsiehr) * Date: 2015-05-09 19:46
While running this command: ./python -m test.test_pydoc -j3 the error underneath was produced.

The AssertionError of 'walkpkg' was not found. Fails around the test_apropos_empty_doc (_main_.PydocImportTest).

The following is the stack trace that was produced after running the test:

test_allmethods (__main__.PydocDocTest) ... ok
test_getpager_with_stdin_none (__main__.PydocDocTest) ... ok
test_help_output_redirect (__main__.PydocDocTest) ... ok
test_html_doc (__main__.PydocDocTest) ... ok
test_input_strip (__main__.PydocDocTest) ... ok
test_is_object_or_method (__main__.PydocDocTest) ... ok
test_is_package_when_is_package (__main__.PydocDocTest) ... ok
test_is_package_when_not_package (__main__.PydocDocTest) ... ok
test_issue8225 (__main__.PydocDocTest) ... ok
test_namedtuple_public_underscore (__main__.PydocDocTest) ... ok
test_non_str_name (__main__.PydocDocTest) ... ok
test_not_ascii (__main__.PydocDocTest) ... ok
test_not_here (__main__.PydocDocTest) ... ok
test_splitdoc_with_description (__main__.PydocDocTest) ... ok
test_stripid (__main__.PydocDocTest) ... ok
test_synopsis (__main__.PydocDocTest) ... ok
test_synopsis_sourceless (__main__.PydocDocTest) ... ok
test_synopsis_sourceless_empty_doc (__main__.PydocDocTest) ... ok
test_text_doc (__main__.PydocDocTest) ... ok
test_text_enum_member_with_value_zero (__main__.PydocDocTest) ... ok
test_apropos_empty_doc (__main__.PydocImportTest) ... FAIL
test_apropos_with_bad_package (__main__.PydocImportTest) ... ok
test_apropos_with_unreadable_dir (__main__.PydocImportTest) ... ok
test_badimport (__main__.PydocImportTest) ... ok
test_importfile (__main__.PydocImportTest) ... ok
test_modules (__main__.PydocImportTest) ... skipped 'causes undesireable side-ef
test_modules_search (__main__.PydocImportTest) ... skipped 'causes undesireable
test_modules_search_builtin (__main__.PydocImportTest) ... skipped 'some buildbo
test_bound_builtin_method (__main__.TestDescriptions) ... ok
test_bound_python_method (__main__.TestDescriptions) ... ok
test_builtin (__main__.TestDescriptions) ... ok
test_class (__main__.TestDescriptions) ... ok
test_module (__main__.TestDescriptions) ... ok
test_module_level_callable (__main__.TestDescriptions) ... ok
test_unbound_builtin_method (__main__.TestDescriptions) ... ok
test_unbound_python_method (__main__.TestDescriptions) ... ok
test_server (__main__.PydocServerTest) ... ok
test_content_type_err (__main__.PydocUrlHandlerTest) ... ok
test_url_requests (__main__.PydocUrlHandlerTest) ... ok
test_keywords (__main__.TestHelper) ... ok
test_DynamicClassAttribute (__main__.PydocWithMetaClasses) ... ok
test_buggy_dir (__main__.PydocWithMetaClasses) ... ok
test_resolve_false (__main__.PydocWithMetaClasses) ... ok
test_virtualClassAttributeWithOneMeta (__main__.PydocWithMetaClasses) ... ok
test_virtualClassAttributeWithTwoMeta (__main__.PydocWithMetaClasses) ... ok

======================================================================
FAIL: test_apropos_empty_doc (__main__.PydocImportTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/test/test_pydoc.py", line
    self.assertIn('walkpkg', stdout.getvalue())
AssertionError: 'walkpkg' not found in '_ast \n_codecs \n_collections - High per that operate on functions.\n_imp - (Extremely) low-level import machinery bits odule provides the Python interfaces to stream handling. The\n_locale - Support rface.\n_signal - This module provides mechanisms to use signal handlers in Pyth_string - string helper module\n_symtable \n_thread - This module provides primiams.\n_tracemalloc - Debug module to trace memory blocks allocated by Python.\n_iltering support.\n_weakref - Weak-reference support module.\natexit - allow probe executedupon normal program termination.\nbuiltins - Built-in functions, excele makes available standard errno system symbols.\nfaulthandler - faulthandler mhe garbage collector for reference cycles.\nitertools - Functional tools for credule contains functions that can read and write Python values in\nposix - This mctionality that is\npwd - This module provides access to the Unix password databme objects used or maintained by the\ntime - This module provides various functixsubtype is an example module showing how to subtype builtin types from C.\nzipiing Python modules from Zip archives.\n'

----------------------------------------------------------------------
Ran 45 tests in 3.309s

FAILED (failures=1, skipped=3)
Traceback (most recent call last):
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/runpy.py", line 170, in _r
    "__main__", mod_spec)
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/runpy.py", line 85, in _ru
    exec(code, run_globals)
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/test/test_pydoc.py", line
    test_main()
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/test/support/__init__.py",
    return func(*args)
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/test/test_pydoc.py", line
    PydocWithMetaClasses,
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/test/support/__init__.py",
    _run_suite(suite)
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/test/support/__init__.py",
    raise TestFailed(err)
test.support.TestFailed: Traceback (most recent call last):
  File "/home/hsiehr/Documents/OpenSource/cpython/Lib/test/test_pydoc.py", line
    self.assertIn('walkpkg', stdout.getvalue())
AssertionError: 'walkpkg' not found in '_ast \n_codecs \n_collections - High per that operate on functions.\n_imp - (Extremely) low-level import machinery bits odule provides the Python interfaces to stream handling. The\n_locale - Support rface.\n_signal - This module provides mechanisms to use signal handlers in Pyth_string - string helper module\n_symtable \n_thread - This module provides primiams.\n_tracemalloc - Debug module to trace memory blocks allocated by Python.\n_iltering support.\n_weakref - Weak-reference support module.\natexit - allow probe executedupon normal program termination.\nbuiltins - Built-in functions, excele makes available standard errno system symbols.\nfaulthandler - faulthandler mhe garbage collector for reference cycles.\nitertools - Functional tools for credule contains functions that can read and write Python values in\nposix - This mctionality that is\npwd - This module provides access to the Unix password databme objects used or maintained by the\ntime - This module provides various functixsubtype is an example module showing how to subtype builtin types from C.\nzipiing Python modules from Zip archives.\n'
msg242841 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2015-05-09 21:02
Thanks for the report.  I'm not able to reproduce the failure myself.  Can you give more information on what platform this was run on (OS version) and at what changeset the build was with (hg summary)?  Perhaps you could try debugging the execution of that test case with some prints?  Also, since there was a major break in the default branch earlier today that caused tests to fail, it might be worthwhile to first ensure you have a good build by doing a total rebuild (make clean && make).
msg404803 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2021-10-22 17:41
I wonder if this is worth keeping open, since it's old and no one has reproduced it. I propose closing or OP to share environment details.
History
Date User Action Args
2022-04-11 14:58:16adminsetgithub: 68339
2021-10-22 19:06:17ned.deilysetstatus: open -> closed
resolution: out of date
stage: resolved
2021-10-22 17:41:02nanjekyejoannahsetnosy: + nanjekyejoannah
messages: + msg404803
2015-05-09 21:02:33ned.deilysettype: crash ->

messages: + msg242841
nosy: + ned.deily
2015-05-09 19:46:52hsiehrcreate