Skip to content

Commit

Permalink
TST Throw correct error for pytest version (scikit-learn#12475)
Browse files Browse the repository at this point in the history
  • Loading branch information
musically-ut authored and qinhanmin2014 committed Oct 29, 2018
1 parent 2912e3a commit 338f763
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
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 338f763

Please sign in to comment.