Do not raise self.skipTest().

skipTest() already raises an exception.
This commit is contained in:
Serhiy Storchaka 2013-02-04 15:45:58 +02:00
commit 8b27f23e02
1 changed files with 1 additions and 2 deletions

View 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: