File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ requirements:
3030 - freetype 2.6*
3131 - msinttypes # [win]
3232 - cycler >=0.10
33- - nose
33+ - pytest >=3.0.0
3434 - pyparsing
3535 - pytz
3636# - py2cairo # [linux and py2k]
Original file line number Diff line number Diff line change @@ -788,28 +788,28 @@ def get_namespace_packages(self):
788788
789789class Tests (OptionalPackage ):
790790 name = "tests"
791- nose_min_version = '0.11.1 '
791+ pytest_min_version = '3.0.0 '
792792 default_config = False
793793
794794 def check (self ):
795795 super (Tests , self ).check ()
796796
797797 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' )
801801
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
804804 )
805805 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__ ]
809809 else :
810- msgs += [bad_nose ]
810+ msgs += [bad_pytest ]
811811 except ImportError :
812- msgs += [bad_nose ]
812+ msgs += [bad_pytest ]
813813
814814 if PY3min :
815815 msgs += ['using unittest.mock' ]
You can’t perform that action at this time.
0 commit comments