[pypy-svn] r28949 - pypy/dist/pypy/objspace/test
auc at codespeak.net
auc at codespeak.net
Mon Jun 19 15:14:49 CEST 2006
Author: auc
Date: Mon Jun 19 15:14:47 2006
New Revision: 28949
Modified:
pypy/dist/pypy/objspace/test/test_logicobjspace.py
Log:
re-enabled test_wait_two, for further debugging of machinery
Modified: pypy/dist/pypy/objspace/test/test_logicobjspace.py
==============================================================================
--- pypy/dist/pypy/objspace/test/test_logicobjspace.py (original)
+++ pypy/dist/pypy/objspace/test/test_logicobjspace.py Mon Jun 19 15:14:47 2006
@@ -1,5 +1,5 @@
from pypy.conftest import gettestobjspace
-
+
class UnificationFailure(Exception): pass
class AppTest_Logic(object):
@@ -270,28 +270,27 @@
wait(T)
assert T == 45
- def notest_wait_two(self):
+ def test_wait_two(self):
"""this seems to trigger an
infinite loop in the
greenlet machinery
"""
def sleep(X, Barrier):
+ print "sleeping on var"
wait(X)
bind(Barrier, True)
def wait_two(X, Y):
- Z = newvar()
- uthread(sleep, X, Z)
- uthread(sleep, Y, Z)
- wait(Z)
+ Barrier = newvar()
+ uthread(sleep, X, Barrier)
+ uthread(sleep, Y, Barrier)
+ print "waiting for the barrier to be bound"
+ wait(Barrier)
if is_free(Y):
return 1
return 2
- print
X, Y = newvar(), newvar()
- disp(X)
- disp(Y)
o = uthread(wait_two, X, Y)
unify(X, Y)
unify(Y, 42)
More information about the Pypy-commit
mailing list