Mercurial > cpython-lru_cache-weakref
changeset 41794:2c00a1910271 legacy-trunk
Move imgfile import to the global namespace to trigger an import error ASAP to
prevent creation of a test file.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Sun, 20 May 2007 23:56:18 +0000 |
| parents | c0e89d0ee0e5 |
| children | a58ba67faf1a |
| files | Lib/test/test_imageop.py |
| diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/test/test_imageop.py Sun May 20 23:17:38 2007 +0000 +++ b/Lib/test/test_imageop.py Sun May 20 23:56:18 2007 +0000 @@ -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:
