homepage

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.

Author exarkun
Recipients exarkun
Date 2012年09月10日.19:48:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347306488.32.0.579862468215.issue15912@psf.upfronthosting.co.za>
In-reply-to
Content
The attached unit test fails with an ImportError... sometimes. Here's a little blob of shell that seems to make the failure come up more quickly:
while ~/Projects/cpython/3.3/python -m unittest -v test_broken_import; do
 rm -rf test_broken_import;
 rm -rf __pycache__/;
done
An example of the output when I run it:
exarkun@top:/tmp$ while ~/Projects/cpython/3.3/python -m unittest -v test_broken_import_minimal; do rm -rf test_broken_import; rm -rf __pycache__/; done
test_renamedSource (test_broken_import_minimal.BrokenTests) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
test_renamedSource (test_broken_import_minimal.BrokenTests) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.005s
OK
test_renamedSource (test_broken_import_minimal.BrokenTests) ... > /tmp/test_broken_import_minimal.py(53)test_renamedSource()
-> print(e)
(Pdb) c
No module named 'twisted_renamed_helper'
ERROR
======================================================================
ERROR: test_renamedSource (test_broken_import_minimal.BrokenTests)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "./test_broken_import_minimal.py", line 50, in test_renamedSource
 from twisted_renamed_helper import module
ImportError: No module named 'twisted_renamed_helper'
----------------------------------------------------------------------
Ran 1 test in 0.759s
FAILED (errors=1)
History
Date User Action Args
2012年09月10日 19:48:08exarkunsetrecipients: + exarkun
2012年09月10日 19:48:08exarkunsetmessageid: <1347306488.32.0.579862468215.issue15912@psf.upfronthosting.co.za>
2012年09月10日 19:48:07exarkunlinkissue15912 messages
2012年09月10日 19:48:07exarkuncreate

AltStyle によって変換されたページ (->オリジナル) /