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_multiprocessing: @requires_hashdigest() prevents test discovery
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Many multiprocessing tests are silently skipped since 3.9
View: 45042
Assigned To: Nosy List: christian.heimes, serhiy.storchaka, vstinner
Priority: normal Keywords:

Created on 2020-11-17 15:16 by christian.heimes, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg381245 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2020-11-17 15:16
The helper function "install_tests_in_module_dict" uses subclass checks to detect test cases in module globals:

    if issubclass(base, BaseTestCase):
        ...
    elif issubclass(base, unittest.TestCase):
        ...

However @requires_hashdigest() returns a function object, not a class instance. None of the tests marked with @requires_hashdigest() are executed any more.
msg402086 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-09-17 20:14
Fixed in issue45042.
History
Date User Action Args
2022-04-11 14:59:38adminsetgithub: 86555
2021-09-17 20:14:25serhiy.storchakasetstatus: open -> closed

superseder: Many multiprocessing tests are silently skipped since 3.9

nosy: + serhiy.storchaka
messages: + msg402086
resolution: duplicate
stage: resolved
2020-11-17 15:16:09christian.heimescreate