Skip to content

Commit

Permalink
TST Throw correct error for pytest version (#12475)
Browse files Browse the repository at this point in the history
  • Loading branch information
musically-ut authored and jnothman committed Nov 14, 2018
1 parent 40f28c2 commit e4e9163
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conftest.py
Expand Up @@ -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):
Expand Down

0 comments on commit e4e9163

Please sign in to comment.