runtests.py: py3k fix
authorVitja Makarov <vitja.makarov@gmail.com>
Sat, 11 Dec 2010 14:45:27 +0000 (17:45 +0300)
committerVitja Makarov <vitja.makarov@gmail.com>
Sat, 11 Dec 2010 14:45:27 +0000 (17:45 +0300)
runtests.py

index d61cbcca46c3cb4c54e5266ae40eded2713c5ef4..53818a72aea08ec295ec9712ea71b8c9ab19e331 100644 (file)
@@ -673,7 +673,9 @@ class CythonPyregrTestCase(CythonRunTestCase):
             module = __import__(self.module)
             if hasattr(module, 'test_main'):
                 module.test_main()
-        except (unittest.SkipTest, support.ResourceDenied), e:
+        except unittest.SkipTest, e:
+            result.addSkip(self, str(e))
+        except support.ResourceDenied, e:
             result.addSkip(self, str(e))