Skip to content

Commit de77e29

Browse files
committed
Drop pytest version check in setupext.py.
There's already a better check from the minversion entry in pytest.ini, which will actually error out cleanly if trying to run the tests with a too-old pytest.
1 parent d1060a8 commit de77e29

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

setupext.py

-23
Original file line numberDiff line numberDiff line change
@@ -656,31 +656,8 @@ def get_package_data(self):
656656

657657
class Tests(OptionalPackage):
658658
name = "tests"
659-
pytest_min_version = '3.6'
660659
default_config = True
661660

662-
def check(self):
663-
super().check()
664-
665-
msgs = []
666-
msg_template = ('{package} is required to run the Matplotlib test '
667-
'suite. Please install it with pip or your preferred '
668-
'tool to run the test suite')
669-
670-
bad_pytest = msg_template.format(
671-
package='pytest %s or later' % self.pytest_min_version
672-
)
673-
try:
674-
import pytest
675-
if is_min_version(pytest.__version__, self.pytest_min_version):
676-
msgs += ['using pytest version %s' % pytest.__version__]
677-
else:
678-
msgs += [bad_pytest]
679-
except ImportError:
680-
msgs += [bad_pytest]
681-
682-
return ' / '.join(msgs)
683-
684661
def get_packages(self):
685662
return setuptools.find_packages("lib", include=["*.tests"])
686663

0 commit comments

Comments
 (0)