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.

Author sobolevn
Recipients corona10, sobolevn
Date 2022-01-18.18:41:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642531299.32.0.982136294223.issue46425@roundup.psfhosted.org>
In-reply-to
Content
While working on a similar issue for `test_typing.py` (https://bugs.python.org/issue46416) I wondered: how many other modules also have this problem?

So, after several hours of local testing, I got several problems:
- Lib/test/test_compileall.py
  Uses relative `.` import that cannot be resolved

- Lib/test/test_distutils.py
  Is missing `import unittest` to run `unittest.main()`

- Lib/test/test_dtrace.py
  Calls undefined `test_main()` instead of  `unittest.main()`

- Lib/test/test_tools/test_freeze.py
  Uses relative `.` import that cannot be resolved

- Lib/test/test_zipfile64.py
  Imports undefined `from test.support import TESTFN`

- Lib/unittest/test/test_program.py
  Uses relative `.` import that cannot be resolved

Probably there are other problems, because I haven't checked:
- Windows tests, because I don't have a Win machine
- `test_importlib`, because it has a lot of failure (I don't know how to fix them yet)
- Multiple other modules with slow tests
- Modules with doctests which assert full `__qualname__` with module names

To keep PRs reviews sane, I will include changes for several modules and split this big task of checking all test modules into several consecutive and rather simple pull requests. 

The first one with the problems described above is on its way!
History
Date User Action Args
2022-01-18 18:41:39sobolevnsetrecipients: + sobolevn, corona10
2022-01-18 18:41:39sobolevnsetmessageid: <1642531299.32.0.982136294223.issue46425@roundup.psfhosted.org>
2022-01-18 18:41:39sobolevnlinkissue46425 messages
2022-01-18 18:41:39sobolevncreate