diff --git a/conftest.py b/conftest.py index 82c4b17faeef0..50a3d3470a47a 100644 --- a/conftest.py +++ b/conftest.py @@ -16,8 +16,9 @@ PYTEST_MIN_VERSION = '3.3.0' if LooseVersion(pytest.__version__) < PYTEST_MIN_VERSION: - raise('Your version of pytest is too old, you should have at least ' - 'pytest >= {} installed.'.format(PYTEST_MIN_VERSION)) + raise ImportError('Your version of pytest is too old, you should have ' + 'at least pytest >= {} installed.' + .format(PYTEST_MIN_VERSION)) def pytest_addoption(parser):