1. python_mirrors
  2. sandbox/sbt

Commits

sbt  committed 04a59c9 Draft

Fix raise statements

  • Participants
  • Parent commits 8f08d83
  • Branches spawn

Comments (0)

Files changed (2)

File Lib/test/test_multiprocessing_forkserver.py

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

File Lib/test/test_multiprocessing_spawn.py

View file
 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)