|
|
|
@ -511,7 +511,7 @@ class Runner(object):
|
|
|
|
|
if not new_stdin and fileno is not None:
|
|
|
|
|
try:
|
|
|
|
|
self._new_stdin = os.fdopen(os.dup(fileno))
|
|
|
|
|
except:
|
|
|
|
|
except OSError, e:
|
|
|
|
|
# couldn't dupe stdin, most likely because it's
|
|
|
|
|
# not a valid file descriptor, so we just rely on
|
|
|
|
|
# using the one that was passed in
|
|
|
|
@ -1103,7 +1103,7 @@ class Runner(object):
|
|
|
|
|
if fileno is not None:
|
|
|
|
|
try:
|
|
|
|
|
new_stdin = os.fdopen(os.dup(fileno))
|
|
|
|
|
except:
|
|
|
|
|
except OSError, e:
|
|
|
|
|
# couldn't dupe stdin, most likely because it's
|
|
|
|
|
# not a valid file descriptor, so we just rely on
|
|
|
|
|
# using the one that was passed in
|
|
|
|
|