Permalink
Browse files

TST: misc: Don't use 'import *'. Don't use plain 'assert'.

  • Loading branch information...
warren.weckesser
warren.weckesser committed Sep 12, 2010
1 parent d8c0bcf commit f76f6fadb429901d28bd4984c1202b7458535678
Showing with 4 additions and 3 deletions.
  1. +4 −3 scipy/misc/tests/test_pilutil.py
@@ -1,7 +1,8 @@
import os.path
import numpy as np
-from numpy.testing import *
+from numpy.testing import assert_, assert_equal, \
+ dec, decorate_methods, TestCase, run_module_suite
try:
import PIL.Image
@@ -42,8 +43,8 @@ def test_bytescale(self):
def tst_fromimage(filename, irange):
img = pilutil.fromimage(PIL.Image.open(filename))
imin,imax = irange
- assert img.min() >= imin
- assert img.max() <= imax
+ assert_(img.min() >= imin)
+ assert_(img.max() <= imax)
@_pilskip
def test_fromimage():

0 comments on commit f76f6fa

Please sign in to comment.