New submission from Ivan Zakharyaschev: (An issue similar to http://bugs.python.org/issue26911 , but with a different source file from the tests)
Lib/test/test_email/torture_test.py:15:from email.test.test_email import TestEmailBase should be: from test.test_email import TestEmailBase because the first variant has a non-existing path. (This makes the auto-requirements generator in ALT Sisyphus to generate a broken/unsatisfiable dependency on email.test.test_email when building the package from http://git.altlinux.org/people/imz/packages/python3.git .) Similarly, Lib/test/test_email/test_asian_codecs.py:8:from test.test_email.test_email import TestEmailBase should better not have an extra "test_email" component in the path. All other imports of test_email in Python 3.5.1 sources are of the form I'm suggesting: $ git --no-pager grep -Fn .test_email Lib/test/test_email/__init__.py:9:from test.test_email import __file__ as landmark Lib/test/test_email/__main__.py:1:from test.test_email import load_tests Lib/test/test_email/test__encoded_words.py:4:from test.test_email import TestEmailBase Lib/test/test_email/test__header_value_parser.py:6:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_asian_codecs.py:8:from test.test_email.test_email import TestEmailBase Lib/test/test_email/test_contentmanager.py:2:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_defect_handling.py:6:from test.test_email import TestEmailBase Lib/test/test_email/test_email.py:42:from test.test_email import openfile, TestEmailBase Lib/test/test_email/test_generator.py:8:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_headerregistry.py:8:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_inversion.py:11:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_message.py:5:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/test_parser.py:5:from test.test_email import TestEmailBase Lib/test/test_email/test_pickleable.py:9:from test.test_email import TestEmailBase, parameterize Lib/test/test_email/torture_test.py:15:from email.test.test_email import TestEmailBase Misc/HISTORY:1733:- Issue #8315: (partial fix) python -m unittest test.test_email now works. BTW, I'm not sure these two files are used anywhere, because grep gives no results for their names. ---------- components: Tests messages: 264667 nosy: imz priority: normal severity: normal status: open title: test/test_email/torture_test.py (and test_asian_codecs.py) has a broken import type: compile error versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26912> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com