File tree 2 files changed +12
-12
lines changed
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ requirements:
30
30
- freetype 2.6*
31
31
- msinttypes # [win]
32
32
- cycler >=0.10
33
- - nose
33
+ - pytest >=3.0.0
34
34
- pyparsing
35
35
- pytz
36
36
# - py2cairo # [linux and py2k]
Original file line number Diff line number Diff line change @@ -788,28 +788,28 @@ def get_namespace_packages(self):
788
788
789
789
class Tests (OptionalPackage ):
790
790
name = "tests"
791
- nose_min_version = '0.11.1 '
791
+ pytest_min_version = '3.0.0 '
792
792
default_config = False
793
793
794
794
def check (self ):
795
795
super (Tests , self ).check ()
796
796
797
797
msgs = []
798
- msg_template = ('{package} is required to run the matplotlib test '
799
- 'suite. Please install it with pip or your preferred'
800
- ' tool to run the test suite' )
798
+ msg_template = ('{package} is required to run the Matplotlib test '
799
+ 'suite. Please install it with pip or your preferred '
800
+ 'tool to run the test suite' )
801
801
802
- bad_nose = msg_template .format (
803
- package = 'nose %s or later' % self .nose_min_version
802
+ bad_pytest = msg_template .format (
803
+ package = 'pytest %s or later' % self .pytest_min_version
804
804
)
805
805
try :
806
- import nose
807
- if is_min_version (nose .__version__ , self .nose_min_version ):
808
- msgs += ['using nose version %s' % nose .__version__ ]
806
+ import pytest
807
+ if is_min_version (pytest .__version__ , self .pytest_min_version ):
808
+ msgs += ['using pytest version %s' % pytest .__version__ ]
809
809
else :
810
- msgs += [bad_nose ]
810
+ msgs += [bad_pytest ]
811
811
except ImportError :
812
- msgs += [bad_nose ]
812
+ msgs += [bad_pytest ]
813
813
814
814
if PY3min :
815
815
msgs += ['using unittest.mock' ]
You can’t perform that action at this time.
0 commit comments