mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Attempt RLock creation prior to test execution on Linux, if it raises the OSError in issue 3111, skip the test suite
This commit is contained in:
parent
5da652e374
commit
18623825d2
1 changed files with 6 additions and 3 deletions
|
@ -1755,9 +1755,12 @@ globals().update(testcases_threads)
|
||||||
#
|
#
|
||||||
|
|
||||||
def test_main(run=None):
|
def test_main(run=None):
|
||||||
if sys.platform.startswith("linux") and not os.path.exists("/dev/shm"):
|
if sys.platform.startswith("linux"):
|
||||||
from test.test_support import TestSkipped
|
try:
|
||||||
raise TestSkipped("Missing required /dev/shm device on Linux!")
|
lock = multiprocessing.RLock()
|
||||||
|
except OSError:
|
||||||
|
from test.test_support import TestSkipped
|
||||||
|
raise TestSkipped("OSError raises on RLock creation, see issue 3111!")
|
||||||
|
|
||||||
if run is None:
|
if run is None:
|
||||||
from test.test_support import run_unittest as run
|
from test.test_support import run_unittest as run
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue