Do not raise self.skipTest().
skipTest() already raises an exception.
This commit is contained in:
parent
a66b46aad6
commit
0b4591e0eb
|
@ -340,8 +340,7 @@ class CGIHTTPServerTestCase(BaseTestCase):
|
||||||
self.pythonexe.encode('utf-8')
|
self.pythonexe.encode('utf-8')
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
self.tearDown()
|
self.tearDown()
|
||||||
raise self.skipTest(
|
self.skipTest("Python executable path is not encodable to utf-8")
|
||||||
"Python executable path is not encodable to utf-8")
|
|
||||||
|
|
||||||
self.file1_path = os.path.join(self.cgi_dir, 'file1.py')
|
self.file1_path = os.path.join(self.cgi_dir, 'file1.py')
|
||||||
with open(self.file1_path, 'w', encoding='utf-8') as file1:
|
with open(self.file1_path, 'w', encoding='utf-8') as file1:
|
||||||
|
|
Loading…
Reference in New Issue