mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
gh-100005: Skip test_script_as_dev_fd() on FreeBSD (GH-100006)
On FreeBSD, skip test_script_as_dev_fd() of test_cmd_line_script if
fdescfs is not mounted (at /dev/fd).
(cherry picked from commit 038b151963
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
374b0a2ace
commit
5533cf67e7
2 changed files with 4 additions and 1 deletions
|
@ -741,6 +741,9 @@ class CmdLineTest(unittest.TestCase):
|
|||
self.assertNotEqual(proc.returncode, 0)
|
||||
|
||||
@unittest.skipUnless(os.path.exists('/dev/fd/0'), 'requires /dev/fd platform')
|
||||
@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_script_as_dev_fd(self):
|
||||
# GH-87235: On macOS passing a non-trivial script to /dev/fd/N can cause
|
||||
# problems because all open /dev/fd/N file descriptors share the same
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue