Commit c05957b0 authored by Jason R. Coombs's avatar Jason R. Coombs

Use pytest.importorskip.

parent d138579b
......@@ -169,11 +169,7 @@ class TestUserInstallTest:
assert not cmd.user, 'user should not be implied'
def test_multiproc_atexit(self):
try:
__import__('multiprocessing')
except ImportError:
# skip the test if multiprocessing is not available
return
pytest.importorskip('multiprocessing')
log = logging.getLogger('test_easy_install')
logging.basicConfig(level=logging.INFO, stream=sys.stderr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment