summaryrefslogtreecommitdiff
path: root/Lib/test/test_pty.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-04 19:14:14 +0000
committerGuido van Rossum <guido@python.org>2001-09-04 19:14:14 +0000
commit4672e65b7513d0e8e44534742542660300b20714 (patch)
treee583c3315eb0407d268b97b2020cc7ffbe04bdfa /Lib/test/test_pty.py
parenta62df561fb88c720b9dff33211339b24b1047a40 (diff)
downloadcpython-4672e65b7513d0e8e44534742542660300b20714.tar.gz
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.
Diffstat (limited to 'Lib/test/test_pty.py')
-rw-r--r--Lib/test/test_pty.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py
index b119f6275f..7d72b763ef 100644
--- a/Lib/test/test_pty.py
+++ b/Lib/test/test_pty.py
@@ -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()"