Skip to content

Commit 23cee6a

Browse files
committed
found cases of 'import nose' , and also, use of
a decorator called 'knownfailureif' removed, and replaced with pytest versions if necessary.
1 parent 9a0b134 commit 23cee6a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/matplotlib/tests/test_artist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,3 @@ def test_properties():
206206
warnings.simplefilter("always")
207207
ln.properties()
208208
assert len(w) == 0
209-

lib/matplotlib/tests/test_axes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,6 @@ def test_errorbar():
22032203

22042204
fig.suptitle('Variable errorbars')
22052205

2206-
22072206
# Reuse te first testcase from above for a labeled data test
22082207
data = {"x": x, "y": y}
22092208
fig = plt.figure()

lib/matplotlib/tests/test_image.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
from matplotlib.transforms import Bbox
1313
from matplotlib import rcParams, rc_context
1414
import matplotlib.pyplot as plt
15-
16-
from numpy.testing import assert_array_equal
15+
from numpy.testing import assert_array_equal, assert_array_almost_equal
16+
import pytest
17+
import io
18+
import os
1719

1820
try:
1921
from PIL import Image

lib/matplotlib/tests/test_rcparams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import matplotlib as mpl
1414
import matplotlib.pyplot as plt
1515
from matplotlib.tests import assert_str_equal
16-
from matplotlib.testing.decorators import cleanup, knownfailureif
16+
from matplotlib.testing.decorators import cleanup
1717
import matplotlib.colors as mcolors
1818
# from nose.tools import assert_true, assert_raises, assert_equal
1919
# from nose.plugins.skip import SkipTest

0 commit comments

Comments
 (0)