Message264667
(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. |
|
Date |
User |
Action |
Args |
2016-05-02 20:44:13 | imz | set | recipients:
+ imz |
2016-05-02 20:44:13 | imz | set | messageid: <1462221853.95.0.795708912177.issue26912@psf.upfronthosting.co.za> |
2016-05-02 20:44:13 | imz | link | issue26912 messages |
2016-05-02 20:44:13 | imz | create | |
|