illume avatar illume committed 2a81c81

give more detail on a test failure

Comments (0)

Files changed (2)

 # BUG    = fixed a bug that was (or could have been) crashing
 #
 #
+
+[SVN 2295] June 1, 2009
+    Added abort() and close() to midi Output/Input.  Only close on __dealloc__
+
+[SVN 2290] May 31, 2009
+    let Surface methods accept and return Color instances 
+
 [SVN 2268] May 27, 2009
     updated docs for cursors.load_xbm, thanks Saul Spatz, and Thomas Ibbotson
 

test/midi_test.py

 
         an_in_id = pygame.midi.get_default_input_id() 
         if an_id != -1:
-            interf, name, input, output, opened = pygame.midi.get_device_info(an_in_id)
+            try:
+                r = pygame.midi.get_device_info(an_in_id)
+                interf, name, input, output, opened = r
+            except TypeError:
+                raise Exception(repr(r))
+
             self.assertEqual(output, 0)
             self.assertEqual(input, 1)
             self.assertEqual(opened, 0)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.