Thomas Kluyver  committed 4a46112

Minor tweaks to tests

  • Participants
  • Parent commits e909844

Comments (0)

Files changed (2)

File test/

         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)

File test/

+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