fix mac os

This commit is contained in:
Andrey Maltsev
2023-04-02 15:19:02 +00:00
parent e169d97713
commit cde5527c9f

View File

@@ -776,6 +776,7 @@ class CmdLineTest(unittest.TestCase):
@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")
@unittest.skipIf(sys.platform.startswith("darwin"), "Problems with Mac os descriptor")
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