Author: Romain Guillebert <[email protected]>
Branch: py3k
Changeset: r51563:538110d792c0
Date: 2012-01-21 11:13 +0100
http://bitbucket.org/pypy/pypy/changeset/538110d792c0/
Log: Port test_signal's applevel tests to py3k
diff --git a/pypy/module/signal/test/test_signal.py
b/pypy/module/signal/test/test_signal.py
--- a/pypy/module/signal/test/test_signal.py
+++ b/pypy/module/signal/test/test_signal.py
@@ -174,7 +174,7 @@
except OSError:
pass
else:
- raise AssertionError, "os.read(fd_read, 1) succeeded?"
+ raise AssertionError("os.read(fd_read, 1) succeeded?")
#
fd_read, fd_write = posix.pipe()
flags = fcntl.fcntl(fd_write, fcntl.F_GETFL, 0)
@@ -189,7 +189,7 @@
cannot_read()
posix.kill(posix.getpid(), signal.SIGUSR1)
res = posix.read(fd_read, 1)
- assert res == '\x00'
+ assert res == b'\x00'
cannot_read()
finally:
old_wakeup = signal.set_wakeup_fd(old_wakeup)
@@ -252,7 +252,7 @@
signal(SIGALRM, handler)
alarm(1)
try:
- s.accept()
+ s._accept()
except Alarm:
pass
else:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit