1 # Helper script for test_tempfile.py. argv[2] is the number of a file
2 # descriptor which should _not_ be open. Check this by attempting to
3 # write to it -- if we succeed, something is wrong.
8 verbose
= (sys
.argv
[1] == 'v')
15 # Success -- could not write to fd.
19 sys
.stderr
.write("fd %d is open in child" % fd
)