8000 Update test_units_patches.py · matplotlib/matplotlib@ab57deb · GitHub
[go: up one dir, main page]

Skip to content

Commit ab57deb

Browse files
authored
Update test_units_patches.py
1 parent cf7ba42 commit ab57deb

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lib/matplotlib/tests/test_units_patches.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,11 @@
44
from __future__ import (absolute_import, division, print_function,
55
unicode_literals)
66

7-
from matplotlib.externals import six
8-
9-
import numpy as np
10-
from numpy.testing import assert_array_equal
11-
from numpy.testing import assert_equal
12-
from numpy.testing import assert_almost_equal
13-
14-
from matplotlib.testing.decorators import image_comparison, cleanup
7+
from matplotlib.testing.decorators import image_comparison
158
import matplotlib.pyplot as plt
169
import matplotlib.patches as mpatches
1710

11+
1812
@image_comparison(baseline_images=['units_rectangle'], extensions=['png'])
1913
def test_units_rectangle():
2014
import matplotlib.testing.jpl_units as U
@@ -27,7 +21,3 @@ def test_units_rectangle():
2721
ax.add_patch(p)
2822
ax.set_xlim([4*U.km, 7*U.km])
2923
ax.set_ylim([5*U.km, 9*U.km])
30-
31-
if __name__ == '__main__':
32-
import nose
33-
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

0 commit comments

Comments
 (0)
0