diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 354a12dae17..66df2ab8f95 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1756,6 +1756,7 @@ globals().update(testcases_threads) def test_main(run=None): if sys.platform.startswith("linux") and not os.path.exists("/dev/shm"): + from test.test_support import TestSkipped raise TestSkipped("Missing required /dev/shm device on Linux!") if run is None: