]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Do not raise self.skipTest().
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 4 Feb 2013 13:45:00 +0000 (15:45 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 4 Feb 2013 13:45:00 +0000 (15:45 +0200)
skipTest() already raises an exception.

Lib/test/test_httpservers.py

index d9e406341004d1e17fa82a2e74571f3303f1bd69..d71da1a83ddc8bfc52bceb9389613b975982bdbb 100644 (file)
@@ -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: