Message170225
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) |
|
Date |
User |
Action |
Args |
2012-09-10 19:48:08 | exarkun | set | recipients:
+ exarkun |
2012-09-10 19:48:08 | exarkun | set | messageid: <1347306488.32.0.579862468215.issue15912@psf.upfronthosting.co.za> |
2012-09-10 19:48:07 | exarkun | link | issue15912 messages |
2012-09-10 19:48:07 | exarkun | create | |
|