diff options
author | Gregory P. Smith <greg@krypto.org> | 2014-06-01 22:28:11 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2014-06-01 22:28:11 (GMT) |
commit | f2538e1baed296a45d5f73ceb17ef5290e8f05ed (patch) | |
tree | 9db13c7eb76ca171b05fab3efe113d31e9ba341d | |
parent | 69b778df5dd628f3d8342d8577a1487a80a1d98c (diff) | |
parent | d04f699498bdb75804fa83a77c91809aa8c3298d (diff) | |
download | cpython-f2538e1baed296a45d5f73ceb17ef5290e8f05ed.zip cpython-f2538e1baed296a45d5f73ceb17ef5290e8f05ed.tar.gz cpython-f2538e1baed296a45d5f73ceb17ef5290e8f05ed.tar.bz2 |
Skip test_subprocess test_close_fds_when_max_fd_is_lowered on FreeBSD
when fdescfs is not mounted on /dev/fd.
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index eb5f49c..720025a 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -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") |