changeset 3184:4a4611239021

Minor tweaks to tests
author Thomas Kluyver <takowl@gmail.com>
date Thu, 10 Jan 2013 14:18:39 +0000
parents e90984429fb0
children f52af9cc89ad
files test/font_test.py test/surface_test.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/font_test.py	Thu Jan 10 14:49:00 2013 +0100
+++ b/test/font_test.py	Thu Jan 10 14:18:39 2013 +0000
@@ -93,7 +93,7 @@
         for name in fnts:
             # note, on ubuntu 2.6 they are all unicode strings.
 
-            self.failUnless(isinstance(name, (str, unicod)))
+            self.failUnless(isinstance(name, (str, unicod)), name)
             self.failUnless(name.islower(), name)
             self.failUnless(name.isalnum(), name)
 
--- a/test/surface_test.py	Thu Jan 10 14:49:00 2013 +0100
+++ b/test/surface_test.py	Thu Jan 10 14:18:39 2013 +0000
@@ -1,6 +1,6 @@
+import os
 if __name__ == '__main__':
     import sys
-    import os
     pkg_dir = os.path.split(os.path.abspath(__file__))[0]
     parent_dir, pkg_name = os.path.split(pkg_dir)
     is_pygame_pkg = (pkg_name == 'tests' and