[Cython] Hudson pyregr testing takes too long
Stefan Behnel
stefan_ml at behnel.de
Thu May 5 09:18:22 CEST 2011
Vitja Makarov, 05.05.2011 08:41:
> Recently I've found that pyregr.test_dict (test_mutatingiteration)
> test makes it slow:
>
> def test_mutatingiteration():
> d = {}
> d[1] = 1
> for i in d:
> print i
> d[i+1] = 1
>
> test_mutatingiteration()
>
>
> In CPython this code raises: RuntimeError: dictionary changed size
> during iteration
> And in Cython you have infinite loop. So we can disable this test for now.
Interesting. Yes, if it's a bug in Cython then it's worth disabling the
test until the bug is fixed.
Anyway, I'll try to come up with a fix quickly.
Stefan
More information about the cython-devel
mailing list