Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ee1b31

Browse files
committed
BLD: Replaced assert_is import from nose.tools in test_legend as python 2.6 does not support it
1 parent e7f051f commit 4ee1b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from six.moves import xrange
66

77
import mock
8-
from nose.tools import assert_equal, assert_is
8+
from nose.tools import assert_equal
99
import numpy as np
1010

1111
from matplotlib.testing.decorators import image_comparison, cleanup
@@ -123,7 +123,7 @@ def test_legend_remove():
123123
assert_equal(fig.legends, [])
124124
leg = ax.legend("test")
125125
leg.remove()
126-
assert_is(ax.get_legend(), None)
126+
assert ax.get_legend() is None
127127

128128

129129
class TestLegendFunction(object):

0 commit comments

Comments
 (0)