New submission from Christian Heimes <li...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42389>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to