Commits

Lenard Lindstrom  committed b52ed1d

fix midi_test.py so Python3 compiles it without errors

  • Participants
  • Parent commits d641baa

Comments (0)

Files changed (1)

File test/midi_test.py

     from test.test_utils import test_not_implemented, unittest
 import pygame
 import pygame.midi
+import pygame.compat
 from pygame.locals import *
 
 
         self.assertRaises(pygame.midi.MidiException, raiseit)
         try:
             raise pygame.midi.MidiException(0) 
-        except pygame.midi.MidiException, e: 
+        except pygame.midi.MidiException:
+            e = pygame.compat.geterror()
             self.assertEqual(e.parameter, 0)