[New-bugs-announce] [issue42389] test_multiprocessing: @requires_hashdigest() prevents test discovery

Christian Heimes report at bugs.python.org
Tue Nov 17 10:16:09 EST 2020


New submission from Christian Heimes <lists at cheimes.de>:

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.

----------
components: Tests
messages: 381245
nosy: christian.heimes, vstinner
priority: normal
severity: normal
status: open
title: test_multiprocessing: @requires_hashdigest() prevents test discovery
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42389>
_______________________________________


More information about the New-bugs-announce mailing list