diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index c5db620421d..92306aebfcf 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -351,8 +351,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: