Lines Matching refs:open
532 # stdin is set to open file descriptor
545 # stdin is set to open file object
565 # stdout is set to open file descriptor
577 # stdout is set to open file object
596 # stderr is set to open file descriptor
608 # stderr is set to open file object
652 # capture stdout and stderr to the same open file
1174 handles.append(os.open(tmpfile, os.O_WRONLY|os.O_CREAT))
1296 # the maximum number of open fds. 1024 seems a very common
1731 """Output capturing after a timeout mustn't hang forever on open filehandles."""
2111 [sys.executable, "-c", f"open({name!r}, 'w').close()"],
2192 devzero_fds = [os.open("/dev/zero", os.O_RDONLY)
2265 with open(fd, "w", errors="surrogateescape") as fobj:
2310 with open(fd, "w", errors="surrogateescape") as fobj:
2500 # open up some temporary files
2545 # open up some temporary files
2743 "Expected no fds from %r to be open in child, "
2798 fd = os.open(os.devnull, os.O_RDONLY)
2819 "Some fds were left open")
2822 # Keep some of the fd's we opened open in the subprocess.
2832 "Some fds not in pass_fds were left open")
2848 # a bunch of high open fds above the new lower rlimit.
2853 # any of the fds above the lowered rlimit are still open.
2860 fd = os.open(os.devnull, os.O_RDONLY)
2865 # We also leave 10 more open as some Python buildbots run into
2866 # "too many open files" errors during the test if we do not.
2883 # 29 is lower than the highest fds we are leaving open.
2886 # inherits open fds above that limit. It then uses subprocess
2887 # with close_fds=True to get a report of open fds in the child.
2912 msg="Some fds were left open.")
2988 fd = os.open(os.devnull, os.O_RDWR)
3010 with io.open(os.devnull, "r+") as inout:
3016 with io.open(os.devnull, "r+") as inout:
3022 with io.open(os.devnull, "r+") as inout:
3247 open(os.devnull, 'wb') as dev_null:
3376 with open(os.devnull, 'w') as null:
3623 "no open-ended wait() after the first allowed: "