Commits

sbt committed 04a59c9 Draft

Fix raise statements

Comments (0)

Files changed (2)

Lib/test/test_multiprocessing_forkserver.py

     try:
         multiprocessing.set_start_method('forkserver')
     except (ValueError, ImportError):
-        raise
         raise unittest.SkipTest('forkserver start method not supported')
 
     _test_main(run)

Lib/test/test_multiprocessing_spawn.py

 def test_main(run=None):
     try:
         multiprocessing.set_start_method('spawn')
-    except (ValueError, ImportError) as e:
+    except (ValueError, ImportError):
         raise unittest.SkipTest('spawn start method not supported')
 
     _test_main(run)