diff options
Diffstat (limited to 'Lib/test/subprocessdata/inherited.py')
| -rw-r--r-- | Lib/test/subprocessdata/inherited.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Lib/test/subprocessdata/inherited.py b/Lib/test/subprocessdata/inherited.py deleted file mode 100644 index 1aac041b34..0000000000 --- a/Lib/test/subprocessdata/inherited.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Similar to fd_status.py, but only checks file descriptors passed on the -command line.""" - -import errno -import os -import sys -import stat - -if __name__ == "__main__": - fds = map(int, sys.argv[1:]) - inherited = [] - for fd in fds: - try: - st = os.fstat(fd) - except OSError as e: - if e.errno == errno.EBADF: - continue - raise - # Ignore Solaris door files - if not stat.S_ISDOOR(st.st_mode): - inherited.append(fd) - print(','.join(map(str, inherited))) |
