Author: Armin Rigo <[email protected]>
Branch:
Changeset: r81380:10def85dd7bc
Date: 2015-12-18 17:49 +0100
http://bitbucket.org/pypy/pypy/changeset/10def85dd7bc/
Log: Before resetting SIGALRM, use alarm(0) to make sure pending alarms
are cancelled
diff --git a/rpython/rlib/test/test_streamio.py
b/rpython/rlib/test/test_streamio.py
--- a/rpython/rlib/test/test_streamio.py
+++ b/rpython/rlib/test/test_streamio.py
@@ -1077,6 +1077,7 @@
alarm(1)
assert file.read(10) == "hello"
finally:
+ alarm(0)
signal(SIGALRM, SIG_DFL)
def test_write_interrupted(self):
@@ -1102,6 +1103,7 @@
# can succeed.
file.write("hello")
finally:
+ alarm(0)
signal(SIGALRM, SIG_DFL)
def test_append_mode(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit