[Python-checkins] r55476 - python/trunk/Lib/test/test_imageop.py

brett.cannon python-checkins at python.org
Mon May 21 01:56:23 CEST 2007


Author: brett.cannon
Date: Mon May 21 01:56:18 2007
New Revision: 55476

Modified:
   python/trunk/Lib/test/test_imageop.py
Log:
Move imgfile import to the global namespace to trigger an import error ASAP to
prevent creation of a test file.


Modified: python/trunk/Lib/test/test_imageop.py
==============================================================================
--- python/trunk/Lib/test/test_imageop.py	(original)
+++ python/trunk/Lib/test/test_imageop.py	Mon May 21 01:56:18 2007
@@ -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 @@
     """return a tuple consisting of
        image (in 'imgfile' format) width and height
     """
-
-    import imgfile
-
     try:
         sizes = imgfile.getsizes(name)
     except imgfile.error:


More information about the Python-checkins mailing list