From: Brett Cannon Date: Sun, 20 May 2007 23:56:18 +0000 (+0000) Subject: Move imgfile import to the global namespace to trigger an import error ASAP to X-Git-Tag: v2.6a1~1717 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49da0ead9589b4baf69586a6cec2f75cb72656af;p=thirdparty%2FPython%2Fcpython.git Move imgfile import to the global namespace to trigger an import error ASAP to prevent creation of a test file. --- diff --git a/Lib/test/test_imageop.py b/Lib/test/test_imageop.py index 8789c13ec549..770c9f3c3fbb 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: