Vitja Makarov, 18.11.2010 20:33: > 2010/11/18 Vitja Makarov: >> 2010/11/18 Stefan Behnel: >>> Vitja Makarov, 17.11.2010 11:33: >>>> I've created ticket for #596 for class closures. >>> >>> The patch shows issues when running the CPython regression tests, e.g. with >>> the "--sys-pyregr" option (assuming you have the CPython "test" package >>> installed). >>> >>> Several modules fail to compile at the C level, and the "test_call" test >>> doesn't terminate in Py2.7. >>> >> >> I'll take a look. Do you mean test_capi doesn't terminate?
Ah, right. It hang *after* running test_call, but only showed the name of the next running test after I killed it. https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyregr-py27-c/130/console > Btw test_capi doesn't get reached w/o my patch. > On the other hand TestPendingCalls > > hang too, I'm not sure why, but try this code: > > import _testcapi > import time > import random > > def callback(): > print 'callback' > > for i in xrange(64): > time.sleep(random.random()*0.02) > print 'Try', i > while True: > if _testcapi._pending_threadfunc(callback): > break > > > Fails too, it seems to me to be depended on GIL which is never > released in Cython code. > So I think that for now it's better to disable test_capi. Right, sorry for the noise. Should have looked closer. It's not the first pyregr test that I disable, and likely won't be the last one either. > Didn't yet take time to look at other issues. The C compiler problems looked like closure issues, so they are more likely to be related. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
