From: Serhiy Storchaka Date: Mon, 4 Feb 2013 13:45:00 +0000 (+0200) Subject: Do not raise self.skipTest(). X-Git-Tag: v3.2.4rc1~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b4591e0eb80b78b4c6a4aa6a4071c74c253bde7;p=thirdparty%2FPython%2Fcpython.git Do not raise self.skipTest(). skipTest() already raises an exception. --- diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index d9e406341004..d71da1a83ddc 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -340,8 +340,7 @@ class CGIHTTPServerTestCase(BaseTestCase): self.pythonexe.encode('utf-8') except UnicodeEncodeError: self.tearDown() - raise self.skipTest( - "Python executable path is not encodable to utf-8") + self.skipTest("Python executable path is not encodable to utf-8") self.file1_path = os.path.join(self.cgi_dir, 'file1.py') with open(self.file1_path, 'w', encoding='utf-8') as file1: