]> granicus.if.org Git - python/commitdiff
Add missing imports.
authorGeorg Brandl <georg@python.org>
Sat, 6 Feb 2010 23:06:24 +0000 (23:06 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 6 Feb 2010 23:06:24 +0000 (23:06 +0000)
Lib/test/test_gl.py
Lib/test/test_imageop.py

index be7604186375b77fe2742b2450d5bd22cfa30932..c9264ee6bcb885316eb5d9bf8be201f83cabcf66 100755 (executable)
@@ -3,6 +3,7 @@
     taken mostly from the documentation.
     Roger E. Masse
 """
+import unittest
 from test.test_support import verbose, import_module
 import time
 gl = import_module('gl')
index 9063b22090e3350358ad293884265ca77f5e3fd2..56320fb8973fcf006f52f2b4d00471d1af6c3d36 100755 (executable)
@@ -180,6 +180,7 @@ 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: