summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-05-20 23:56:18 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-05-20 23:56:18 (GMT)
commit49da0ead9589b4baf69586a6cec2f75cb72656af (patch)
tree3ff476c23826b2d7b928d7cad886d4e5b9e34b83 /Lib
parent5e2635103c34ca1d4226f64c84c6bdf54d528d75 (diff)
downloadcpython-49da0ead9589b4baf69586a6cec2f75cb72656af.zip
cpython-49da0ead9589b4baf69586a6cec2f75cb72656af.tar.gz
cpython-49da0ead9589b4baf69586a6cec2f75cb72656af.tar.bz2
Move imgfile import to the global namespace to trigger an import error ASAP to
prevent creation of a test file.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_imageop.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_imageop.py b/Lib/test/test_imageop.py
index 8789c13..770c9f3 100755
--- a/Lib/test/test_imageop.py
+++ b/Lib/test/test_imageop.py
@@ -7,7 +7,7 @@
from test.test_support import verbose, unlink
-import imageop, uu, os
+import imageop, uu, os, imgfile
import warnings
@@ -119,9 +119,6 @@ def getimage(name):
"""return a tuple consisting of
image (in 'imgfile' format) width and height
"""
-
- import imgfile
-
try:
sizes = imgfile.getsizes(name)
except imgfile.error: