Author: Brian Kearns <[email protected]>
Branch:
Changeset: r61333:b53715e21d4d
Date: 2013-02-16 16:09 -0500
http://bitbucket.org/pypy/pypy/changeset/b53715e21d4d/
Log: fix the test: this now raises a thread.error
diff --git a/pypy/module/__pypy__/test/test_signal.py
b/pypy/module/__pypy__/test/test_signal.py
--- a/pypy/module/__pypy__/test/test_signal.py
+++ b/pypy/module/__pypy__/test/test_signal.py
@@ -17,12 +17,12 @@
spaceconfig = dict(usemodules=['__pypy__', 'thread', 'signal', 'time'])
def test_exit_twice(self):
- from __pypy__ import thread
- thread._signals_exit()
+ import __pypy__, thread
+ __pypy__.thread._signals_exit()
try:
- raises(KeyError, thread._signals_exit)
+ raises(thread.error, __pypy__.thread._signals_exit)
finally:
- thread._signals_enter()
+ __pypy__.thread._signals_enter()
def test_enable_signals(self):
import __pypy__, thread, signal, time
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit