[New-bugs-announce] [issue34182] Lib/test/test_pydoc.py failed when ran as a script

Serhiy Storchaka report at bugs.python.org
Sat Jul 21 13:32:53 EDT 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

$ ./python Lib/test/test_pydoc.py
...
======================================================================
ERROR: test_mixed_case_module_names_are_lower_cased (__main__.PydocDocTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_pydoc.py", line 460, in test_mixed_case_module_names_are_lower_cased
    self.assertIn('xml.etree.elementtree', doc_link)
  File "/home/serhiy/py/cpython/Lib/unittest/case.py", line 1103, in assertIn
    if member not in container:
TypeError: argument of type 'NoneType' is not iterable

----------------------------------------------------------------------

Since it works in 3.6, seems the regression was introduced in issue32031.

----------
components: Tests
messages: 322111
nosy: serhiy.storchaka, xdegaye
priority: normal
severity: normal
status: open
title: Lib/test/test_pydoc.py failed when ran as a script
type: behavior
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34182>
_______________________________________


More information about the New-bugs-announce mailing list