8000 MAINT moved test_image to pytest · matplotlib/matplotlib@9903f84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9903f84

Browse files
committed
MAINT moved test_image to pytest
1 parent 194afed commit 9903f84

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

lib/matplotlib/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,6 @@ def _jupyter_nbextension_paths():
14981498
'matplotlib.tests.test_figure',
14991499
'matplotlib.tests.test_font_manager',
15001500
'matplotlib.tests.test_gridspec',
1501-
'matplotlib.tests.test_image',
15021501
'matplotlib.tests.test_legend',
15031502
'matplotlib.tests.test_lines',
15041503
'matplotlib.tests.test_mathtext',

lib/matplotlib/tests/test_gridspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import matplotlib.gridspec as gridspec
2-
from nose.tools import assert_raises, assert_equal
2+
from numpy.testing import assert_raises, assert_equal
33

44

55
def test_equal():

lib/matplotlib/tests/test_image.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,11 @@
2020
import matplotlib.pyplot as plt
2121

2222
from matplotlib import mlab
23-
from nose.tools import assert_raises
24-
from numpy.testing import (
25-
assert_array_equal, assert_array_almost_equal, assert_allclose)
23+
2624
from copy import copy
2725
from numpy import ma
2826
import matplotlib.colors as colors
29-
import matplotlib.pyplot as plt
30-
import matplotlib.mlab as mlab
31-
import numpy as np
3227

33-
import nose
3428

3529
try:
3630
from PIL import Image
@@ -753,7 +747,3 @@ def test_imshow_no_warn_invalid():
753747
warnings.simplefilter("always")
754748
plt.imshow([[1, 2], [3, np.nan]])
755749
assert len(warns) == 0
756-
757-
758-
if __name__ == '__main__':
759-
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

0 commit comments

Comments
 (0)
0