File tree 1 file changed +0
-23
lines changed
1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -656,31 +656,8 @@ def get_package_data(self):
656
656
657
657
class Tests (OptionalPackage ):
658
658
name = "tests"
659
- pytest_min_version = '3.6'
660
659
default_config = True
661
660
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
-
684
661
def get_packages (self ):
685
662
return setuptools .find_packages ("lib" , include = ["*.tests" ])
686
663
You can’t perform that action at this time.
0 commit comments