[New-bugs-announce] [issue24151] test_pydoc fails

Rebecca Hsieh report at bugs.python.org
Sat May 9 21:46:52 CEST 2015


New submission from Rebecca Hsieh:

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'

----------
components: Tests
messages: 242838
nosy: hsiehr
priority: normal
severity: normal
status: open
title: test_pydoc fails
type: crash
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24151>
_______________________________________


More information about the New-bugs-announce mailing list