Brett Cannon added the comment:
test.support.import_module is typically meant for global imports as
function-level imports are discouraged in general. I would instead use the
unittest.skipIf decorator::
@unittest.skipIf(not test.support.multiprocessing, "multiprocessing
required")
def test_qualname_source(self):
...
----------
nosy: +brett.cannon
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19134>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com