Kaydet (Commit) d04f6994 authored tarafından Gregory P. Smith's avatar Gregory P. Smith

Skip test_subprocess test_close_fds_when_max_fd_is_lowered on FreeBSD

when fdescfs is not mounted on /dev/fd.
üst 8fed4deb
......@@ -1927,6 +1927,9 @@ class POSIXProcessTestCase(BaseTestCase):
self.assertIn(1, remaining_fds, "Subprocess failed")
@unittest.skipIf(sys.platform.startswith("freebsd") and
os.stat("/dev").st_dev == os.stat("/dev/fd").st_dev,
"Requires fdescfs mounted on /dev/fd on FreeBSD.")
def test_close_fds_when_max_fd_is_lowered(self):
"""Confirm that issue21618 is fixed (may fail under valgrind)."""
fd_status = support.findfile("fd_status.py", subdir="subprocessdata")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment