Title: test_multiprocessing: @requires_hashdigest() prevents test discovery
Type: behavior Stage:
Components: Tests Versions: Python 3.10, Python 3.9, Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, vstinner
Priority: normal Keywords:

Created on 2020-11-17 15:16 by christian.heimes, last changed 2020-11-17 15:16 by christian.heimes.

Messages (1)
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.
Date User Action Args
2020-11-17 15:16:09christian.heimescreate