8000 MAINT testing.nose -> testing._nose to make it explicitely private · matplotlib/matplotlib@5365270 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5365270

Browse files
committed
MAINT testing.nose -> testing._nose to make it explicitely private
1 parent 7b79174 commit 5365270

File tree

9 files changed

+7
-7
lines changed

9 files changed

+7
-7
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,15 +1511,15 @@ def _init_tests():
15111511
)
15121512
)
15131513

1514-
from .testing.nose import check_deps
1514+
from .testing._nose import check_deps
15151515
check_deps()
15161516

15171517

15181518
def test(verbosity=1, coverage=False, **kwargs):
15191519
"""run the matplotlib test suite"""
15201520
_init_tests()
15211521

1522-
from .testing.nose import test as nose_test
1522+
from .testing._nose import test as nose_test
15231523
return nose_test(verbosity, coverage, **kwargs)
15241524

15251525

lib/matplotlib/testing/decorators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def skipif(condition, *args, **kwargs):
4040
import pytest
4141
return pytest.mark.skipif(condition, *args, **kwargs)
4242
else:
43-
from .nose.decorators import skipif
43+
from ._nose.decorators import skipif
4444
return skipif(condition, *args, **kwargs)
4545

4646

@@ -65,7 +65,7 @@ def knownfailureif(fail_condition, msg=None, known_exception_class=None):
6565
return pytest.mark.xfail(condition=fail_condition, reason=msg,
6666
raises=known_exception_class, strict=strict)
6767
else:
68-
from .nose.decorators import knownfailureif
68+
from ._nose.decorators import knownfailureif
6969
return knownfailureif(fail_condition, msg, known_exception_class)
7070

7171

@@ -340,7 +340,7 @@ def wrapper(extension):
340340

341341

342342
# sadly we cannot use fixture here because of visibility problems
343-
# and for for obvious reason avoid `nose.tools.with_setup`
343+
# and for for obvious reason avoid `_nose.tools.with_setup`
344344
wrapper.setup, wrapper.teardown = self.setup, self.teardown
345345

346346
return wrapper

setupext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,8 @@ def get_packages(self):
713713
'matplotlib.sphinxext',
714714
'matplotlib.style',
715715
'matplotlib.testing',
716-
'matplotlib.testing.nose',
717-
'matplotlib.testing.nose.plugins',
716+
'matplotlib.testing._nose',
717+
'matplotlib.testing._nose.plugins',
718718
'matplotlib.testing.jpl_units',
719719
'matplotlib.tri',
720720
'matplotlib.cbook'

0 commit comments

Comments
 (0)
0