We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f435b3 commit c375314Copy full SHA for c375314
1 file changed
Lib/test/_test_multiprocessing.py
@@ -20,7 +20,6 @@
20
import collections.abc
21
import socket
22
import random
23
-import resource
24
import logging
25
import shutil
26
import subprocess
@@ -82,6 +81,11 @@
82
81
except ImportError:
83
msvcrt = None
84
+try:
85
+ import resource
86
+except ImportError:
87
+ resource = None
88
+
89
90
if support.HAVE_ASAN_FORK_BUG:
91
# gh-89363: Skip multiprocessing tests if Python is built with ASAN to
0 commit comments