8000 remove six.moves.xrange from figure tests · matplotlib/matplotlib@3a96dbc · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a96dbc

Browse files
committed
remove six.moves.xrange from figure tests
1 parent 7bd0a45 commit 3a96dbc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from __future__ import (absolute_import, division, print_function,
22
unicode_literals)
33

4-
from six.moves import xrange
5-
64
from numpy.testing import assert_equal
75
from matplotlib import rcParams
86
from matplotlib.testing.decorators import image_comparison, cleanup
@@ -57,7 +55,7 @@ def test_figure():
5755
fig = plt.figure('today')
5856
ax = fig.add_subplot(111)
5957
ax.set_title(fig.get_label())
60-
ax.plot(list(xrange(5)))
58+
ax.plot(np.arange(5))
6159
# plot red line in a different figure.
6260
plt.figure('tomorrow')
6361
plt.plot([0, 1], [1, 0], 'r')

0 commit comments

Comments
 (0)
0