diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 15:48:40 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 15:48:40 -0500 |
| commit | c05957b09a66c4728c9a578e2e5f33fbd7b97977 (patch) | |
| tree | ed273d2e82c0cbfc1d1a7f3eb105652461ceeb13 /setuptools/tests/test_easy_install.py | |
| parent | d138579b07086630732fa949a947dfad34a241d5 (diff) | |
| download | python-setuptools-git-c05957b09a66c4728c9a578e2e5f33fbd7b97977.tar.gz | |
Use pytest.importorskip.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index af09d681..8ba0c49c 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -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) |
