Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b4591e

Browse files
Do not raise self.skipTest().
skipTest() already raises an exception.
1 parent a66b46a commit 0b4591e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/test_httpservers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@ def setUp(self):
340340
self.pythonexe.encode('utf-8')
341341
except UnicodeEncodeError:
342342
self.tearDown()
343-
raise self.skipTest(
344-
"Python executable path is not encodable to utf-8")
343+
self.skipTest("Python executable path is not encodable to utf-8")
345344

346345
self.file1_path = os.path.join(self.cgi_dir, 'file1.py')
347346
with open(self.file1_path, 'w', encoding='utf-8') as file1:

0 commit comments

Comments
 (0)