[issue11653] Problems with some tests using -j2
Skip Montanaro
report at bugs.python.org
Thu Mar 24 00:26:58 CET 2011
Skip Montanaro <skip at pobox.com> added the comment:
Antoine> New changeset 9aa6097131ef by Antoine Pitrou in branch '3.2':
Antoine> Issue #11653: fix -W with -j in regrtest
Antoine> http://hg.python.org/cpython/rev/9aa6097131ef
Antoine> New changeset c381b35e4f31 by Antoine Pitrou in branch 'default':
Antoine> Issue #11653: fix -W with -j in regrtest.
Antoine> http://hg.python.org/cpython/rev/c381b35e4f31
Saw these checkins and tried again. I definitely see different output and
it seems to rerun failed tests immediately in verbose mode. For example:
[238/352] test_pydoc
Re-running test test_pydoc in verbose mode
test_badimport (test.test_pydoc.PydocDocTest) ... FAIL
test_help_output_redirect (test.test_pydoc.PydocDocTest) ... ok
test_html_doc (test.test_pydoc.PydocDocTest) ... ok
test_input_strip (test.test_pydoc.PydocDocTest) ... ok
test_issue8225 (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) ... ok
test_class (test.test_pydoc.TestDescriptions) ... ok
test_module (test.test_pydoc.TestDescriptions) ... ok
test_server (test.test_pydoc.PydocServerTest) ... ok
test_content_type_err (test.test_pydoc.PydocUrlHandlerTest) ... ok
test_url_requests (test.test_pydoc.PydocUrlHandlerTest) ... ok
However, I also see lots of tests crashing in imp. Here's one example:
test test_ttk_textonly crashed -- Traceback (most recent call last):
File "/Users/skip/src/hgpython/cpython/Lib/test/regrtest.py", line 988, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/Users/skip/src/hgpython/cpython/Lib/test/test_ttk_textonly.py", line 7, in <module>
from tkinter.test import runtktests
File "/Users/skip/src/hgpython/cpython/Lib/importlib/_bootstrap.py", line 437, in load_module
return self._load_module(fullname)
File "/Users/skip/src/hgpython/cpython/Lib/importlib/_bootstrap.py", line 141, in decorated
return fxn(self, module, *args, **kwargs)
File "/Users/skip/src/hgpython/cpython/Lib/importlib/_bootstrap.py", line 330, in _load_module
code_object = self.get_code(name)
File "/Users/skip/src/hgpython/cpython/Lib/importlib/_bootstrap.py", line 407, in get_code
imp._fix_co_filename(found, source_path)
AttributeError: 'module' object has no attribute '_fix_co_filename'
Skip
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11653>
_______________________________________
More information about the Python-bugs-list
mailing list