Skip to content

Commit 5af3140

Browse files
committed
Disable unreliable subprocess tests
1 parent b045f37 commit 5af3140

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

graalpython/lib-python/3/test/test_subprocess.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2370,6 +2370,7 @@ def test_bytes_program(self):
23702370
exitcode = subprocess.call([program]+args, env=envb)
23712371
self.assertEqual(exitcode, 0)
23722372

2373+
@support.impl_detail("[GR-30188] may cause transient failures when executed concurrently", graalvm=False)
23732374
def test_pipe_cloexec(self):
23742375
sleeper = support.findfile("input_reader.py", subdir="subprocessdata")
23752376
fd_status = support.findfile("fd_status.py", subdir="subprocessdata")
@@ -2393,7 +2394,7 @@ def test_pipe_cloexec(self):
23932394
"found %r" %
23942395
(unwanted_fds, result_fds & unwanted_fds))
23952396

2396-
@unittest.skipIf(sys.platform == 'darwin', '[GR-30189] hangs on graalpython on OS X')
2397+
@support.impl_detail("[GR-30189] sometimes hangs on graalpython", graalvm=False)
23972398
def test_pipe_cloexec_real_tools(self):
23982399
qcat = support.findfile("qcat.py", subdir="subprocessdata")
23992400
qgrep = support.findfile("qgrep.py", subdir="subprocessdata")
@@ -2435,6 +2436,7 @@ def kill_p2():
24352436
p1.stdout.close()
24362437
p2.stdout.close()
24372438

2439+
@support.impl_detail("[GR-30188] may cause transient failures when executed concurrently", graalvm=False)
24382440
def test_close_fds(self):
24392441
fd_status = support.findfile("fd_status.py", subdir="subprocessdata")
24402442

@@ -2483,6 +2485,7 @@ def test_close_fds(self):
24832485
self.assertIn(1, remaining_fds, "Subprocess failed")
24842486

24852487

2488+
@support.impl_detail("[GR-30188] may cause transient failures when executed concurrently", graalvm=False)
24862489
@unittest.skipIf(sys.platform.startswith("freebsd") and
24872490
os.stat("/dev").st_dev == os.stat("/dev/fd").st_dev,
24882491
"Requires fdescfs mounted on /dev/fd on FreeBSD.")
@@ -2566,6 +2569,7 @@ def test_close_fds_when_max_fd_is_lowered(self):
25662569
# descriptor of a pipe closed in the parent process is valid in the
25672570
# child process according to fstat(), but the mode of the file
25682571
# descriptor is invalid, and read or write raise an error.
2572+
@support.impl_detail("[GR-30188] may cause transient failures when executed concurrently", graalvm=False)
25692573
@support.requires_mac_ver(10, 5)
25702574
def test_pass_fds(self):
25712575
fd_status = support.findfile("fd_status.py", subdir="subprocessdata")
@@ -2600,6 +2604,7 @@ def test_pass_fds(self):
26002604
close_fds=False, pass_fds=(fd, )))
26012605
self.assertIn('overriding close_fds', str(context.warning))
26022606

2607+
@support.impl_detail("[GR-30188] may cause transient failures when executed concurrently", graalvm=False)
26032608
def test_pass_fds_inheritable(self):
26042609
script = support.findfile("fd_status.py", subdir="subprocessdata")
26052610

@@ -2630,6 +2635,7 @@ def test_pass_fds_inheritable(self):
26302635
# bpo-32270: Ensure that descriptors specified in pass_fds
26312636
# are inherited even if they are used in redirections.
26322637
# Contributed by @izbyshev.
2638+
@support.impl_detail("[GR-30188] may cause transient failures when executed concurrently", graalvm=False)
26332639
def test_pass_fds_redirected(self):
26342640
"""Regression test for https://bugs.python.org/issue32270."""
26352641
fd_status = support.findfile("fd_status.py", subdir="subprocessdata")

0 commit comments

Comments
 (0)