New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test failures due to missing module #56304
Comments
When I run the test suite on OSX (configure; make test) I get unexpected est failures: 6 tests failed: When I run one of these manually I get the following traceback: ./python.exe ../Lib/test/test_codecencodings_cn.py
Traceback (most recent call last):
File "../Lib/test/test_codecencodings_cn.py", line 11, in <module>
class Test_GB2312(test_multibytecodec_support.TestBase, unittest.TestCase):
File "../Lib/test/test_codecencodings_cn.py", line 13, in Test_GB2312
tstring = test_multibytecodec_support.load_teststring('gb2312')
File "/Users/ronald/Projects/python/rw/2.7/Lib/test/test_multibytecodec_support.py", line 330, in load_teststring
from test import cjkencodings_test
ImportError: cannot import name cjkencodings_test The only reference to cjkencodings_test in the entire 2.7 tree is this import line, there is no module or extension with this name. |
I've verified the issue in a fresh download of revision c449d3c3e0da of the 2.7 branch. I'm on OSX 10.6, but that's not really relevant for this issue. If I'm using 'hg bisect' correctly (and that's a big if as I haven't used it before) this failure is caused by this patch: The first bad revision is: And indeed in this revision: $ ls cjkencodings_test.py
ls: cjkencodings_test.py: No such file or directory
$ grep cjkencodings_test test_multibytecodec_support.py
from test import cjkencodings_test
return cjkencodings_test.teststring[encoding] |
Oh oh. I forgot to patch .hgeol and test_multibytecodec_support.py during my "merge" 3.1 (16503022c4b8) -> 2.7 (1bd697cdd210). It should be ok with 83f4c270b27d. Thank you for your report Ronald. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: