From: Vitja Makarov Date: Sat, 11 Dec 2010 17:02:42 +0000 (+0300) Subject: runtests.py: py3k fix try 2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=351d69aa286a67f00da91a291108055e417f9982;p=cython.git runtests.py: py3k fix try 2 --- diff --git a/runtests.py b/runtests.py index 53818a72..91c11f70 100644 --- a/runtests.py +++ b/runtests.py @@ -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: