Skip to content
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

Closed
ronaldoussoren opened this issue May 17, 2011 · 3 comments
Closed

test failures due to missing module #56304

ronaldoussoren opened this issue May 17, 2011 · 3 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@ronaldoussoren
Copy link
Contributor

BPO 12095
Nosy @ronaldoussoren, @vstinner

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:

assignee = None
closed_at = <Date 2011-05-17.13:52:19.845>
created_at = <Date 2011-05-17.11:27:58.091>
labels = ['type-bug', 'library']
title = 'test failures due to missing module'
updated_at = <Date 2011-05-17.13:52:19.844>
user = 'https://github.com/ronaldoussoren'

bugs.python.org fields:

activity = <Date 2011-05-17.13:52:19.844>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2011-05-17.13:52:19.845>
closer = 'vstinner'
components = ['Library (Lib)']
creation = <Date 2011-05-17.11:27:58.091>
creator = 'ronaldoussoren'
dependencies = []
files = []
hgrepos = []
issue_num = 12095
keywords = []
message_count = 3.0
messages = ['136148', '136149', '136160']
nosy_count = 2.0
nosy_names = ['ronaldoussoren', 'vstinner']
pr_nums = []
priority = 'high'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue12095'
versions = ['Python 2.7']

@ronaldoussoren
Copy link
Contributor Author

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.

@ronaldoussoren ronaldoussoren added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels May 17, 2011
@ronaldoussoren
Copy link
Contributor Author

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 bpo-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]

@vstinner
Copy link
Member

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants