From 338f763c21be73e584be2fffced180cbd295b6df Mon Sep 17 00:00:00 2001 From: Utkarsh Upadhyay <502876+musically-ut@users.noreply.github.com> Date: Mon, 29 Oct 2018 10:54:30 -0400 Subject: [PATCH] TST Throw correct error for pytest version (#12475) --- conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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):