mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
The first batch of changes recommended by the fixdiv tool. These are
mostly changes of / operators into //. Once or twice I did more or less than recommended.
This commit is contained in:
parent
b8f2274985
commit
54e54c6877
19 changed files with 38 additions and 38 deletions
|
@ -86,7 +86,7 @@ if pid == pty.CHILD:
|
|||
else:
|
||||
debug("Waiting for child (%d) to finish."%pid)
|
||||
(pid, status) = os.waitpid(pid, 0)
|
||||
res = status / 256
|
||||
res = status >> 8
|
||||
debug("Child (%d) exited with status %d (%d)."%(pid, res, status))
|
||||
if res == 1:
|
||||
raise TestFailed, "Child raised an unexpected exception in os.setsid()"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue