runtests.py: py3k fix try 2
authorVitja Makarov <vitja.makarov@gmail.com>
Sat, 11 Dec 2010 17:02:42 +0000 (20:02 +0300)
committerVitja Makarov <vitja.makarov@gmail.com>
Sat, 11 Dec 2010 17:02:42 +0000 (20:02 +0300)
runtests.py

index 53818a72aea08ec295ec9712ea71b8c9ab19e331..91c11f70c16825d6005b0bbebbdafd6c1950ad2d 100644 (file)
@@ -673,10 +673,8 @@ class CythonPyregrTestCase(CythonRunTestCase):
             module = __import__(self.module)
             if hasattr(module, 'test_main'):
                 module.test_main()
-        except unittest.SkipTest, e:
-            result.addSkip(self, str(e))
-        except support.ResourceDenied, e:
-            result.addSkip(self, str(e))
+        except (unittest.SkipTest, support.ResourceDenied):
+            result.addSkip(self, 'ok')
 
 
 try: