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.

classification
Title: test failures due to missing module
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ronaldoussoren, vstinner
Priority: high Keywords:

Created on 2011-05-17 11:27 by ronaldoussoren, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg136148 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2011-05-17 11:27
When I run the test suite on OSX (configure; make test) I get unexpected est failures:

6 tests failed:
    test_codecencodings_cn test_codecencodings_hk
    test_codecencodings_jp test_codecencodings_kr
    test_codecencodings_tw

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.
msg136149 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2011-05-17 12:09
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:
changeset:   70161:1bd697cdd210
branch:      2.7
parent:      70145:978016199be8
user:        Victor Stinner <victor.stinner@haypocalc.com>
date:        Mon May 16 17:16:18 2011 +0200
summary:     Issue #12057: Convert CJK encoding testcase BLOB into multiple text files


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]
msg136160 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-05-17 13:52
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.
History
Date User Action Args
2022-04-11 14:57:17adminsetgithub: 56304
2011-05-17 13:52:19vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg136160
2011-05-17 12:09:55ronaldoussorensetmessages: + msg136149
2011-05-17 11:33:32ezio.melottisetnosy: + vstinner
2011-05-17 11:27:58ronaldoussorencreate