Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0631a1d

Browse filesBrowse files
committed
TST/MNT: clean up imports in test_image
1 parent 2db55f8 commit 0631a1d
Copy full SHA for 0631a1d

File tree

Expand file treeCollapse file tree

1 file changed

+10
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-5
lines changed

‎lib/matplotlib/tests/test_image.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_image.py
+10-5Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,31 @@
33

44
from matplotlib.externals import six
55
import sys
6+
import io
7+
import os
68

79
import numpy as np
810

9-
from matplotlib.testing.decorators import image_comparison, knownfailureif, cleanup
11+
from matplotlib.testing.decorators import (image_comparison,
12+
knownfailureif, cleanup)
1013
from matplotlib.image import BboxImage, imread, NonUniformImage
1114
from matplotlib.transforms import Bbox
1215
from matplotlib import rcParams
1316
import matplotlib.pyplot as plt
14-
from nose.tools import assert_raises
15-
from numpy.testing import assert_array_equal, assert_array_almost_equal
1617

17-
import io
18-
import os
18+
from numpy.testing import assert_array_equal
19+
20+
21+
import nose
1922

2023
try:
2124
from PIL import Image
25+
del Image
2226
HAS_PIL = True
2327
except ImportError:
2428
HAS_PIL = False
2529

30+
2631
@image_comparison(baseline_images=['image_interps'])
2732
def test_image_interps():
2833
'make the basic nearest, bilinear and bicubic interps'

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.