Commits

illume  committed 958d191

fixed up jpg test, and made tests also load a python file object
before loading the image.

  • Participants
  • Parent commits a44e807

Comments (0)

Files changed (1)

File test/image_test.py

         f = os.path.join("examples", "data", "alien1.png")
         surf = pygame.image.load(f)
 
+        f = open(os.path.join("examples", "data", "alien1.png"), "rb")
+        surf = pygame.image.load(f)
+
 
     def testLoadJPG( self ):
         """ see if we can load a jpg.
         """
-        f = os.path.join("examples", "data", "alien1.png")
+        f = os.path.join("examples", "data", "alien1.jpg")
         surf = pygame.image.load(f)
 
+        f = open(os.path.join("examples", "data", "alien1.jpg"), "rb")
+        surf = pygame.image.load(f)