[Cython] Cython 0.21 beta 1 released

Stefan Behnel stefan_ml at behnel.de
Mon Sep 8 19:51:51 CEST 2014


Hi,

thanks again for testing.

Arfrever Frehtes Taifersar Arahesis schrieb am 31.08.2014 um 10:29:
> 2014-08-28 20:39 Stefan Behnel napisał(a):
>> Arfrever Frehtes Taifersar Arahesis schrieb am 14.08.2014 um 10:18:
>>> Results of test suite of Cython 0.21 beta 1 with different versions of Python:
>>>   Python 2.6: 1 error, 2 failures
>>>   Python 2.7: 1 error, 0 failures
>>>   Python 3.2: 1 error, 0 failures
>>>   Python 3.3: 1 error, 0 failures
>>>   Python 3.4: 1 error, 0 failures
>>>
>>> The 1 error is the same with all versions of Python.
>>> Output with Python 2.6:
>>>
>>> ======================================================================
>>> ERROR: compiling (c) and running bufaccess
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>>   File "runtests.py", line 1022, in run
>>>     check_thread_termination()
>>>   File "runtests.py", line 1633, in check_thread_termination
>>>     raise PendingThreadsError("left-over threads found after running test")
>>> PendingThreadsError: left-over threads found after running test
>>>
>>> ======================================================================
>>
>> There should be some output in the log where the test is run that shows
>> what threads are still running here. Could you look that up?
> 
> Output for Cython 0.21 beta 2:
> 
> compiling (c) and running bufaccess ... Doctest: bufaccess.__test__.acquire_failure1 ... ok
> [...]
> warning: left-over threads found after running test:
> ...<HistorySavingThread(Thread-1, started 140020768708352)>
> ERROR

That's from the IPython tests. It seems to start that thread automatically,
don't know if we can do anything about it. In any case, it's not harmful
and the rest of the test has passed.


>>> ======================================================================
>>> FAIL: Doctest: double_dealloc_T796
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>>   File "/usr/lib64/python2.6/doctest.py", line 2163, in runTest
>>>     raise self.failureException(self.format_failure(new.getvalue()))
>>> AssertionError: Failed doctest test for double_dealloc_T796
>>>   File "/tmp/Cython-0.21b1/tests-2.6/run/cpp/double_dealloc_T796/double_dealloc_T796.so", line unknown line number, in double_dealloc_T796
>>>
>>> ----------------------------------------------------------------------
>>> File "/tmp/Cython-0.21b1/tests-2.6/run/cpp/double_dealloc_T796/double_dealloc_T796.so", line ?, in double_dealloc_T796
>>> Failed example:
>>>     del x
>>> Expected:
>>>     SimpleGarbage(1) __dealloc__
>>>     Collector.__dealloc__
>>>     collect 0
>>> Got:
>>>     SimpleGarbage(1) __dealloc__
>>>     Collector.__dealloc__
>>>     collect 128
>>
>> This might just be a problem with the test. Does this patch help?
>>
>> =========================================
>> diff -r f7b5d79a04e6 -r e2f2cf8efcc7 tests/run/double_dealloc_T796.pyx
>> --- a/tests/run/double_dealloc_T796.pyx Thu Aug 28 20:21:14 2014 +0200
>> +++ b/tests/run/double_dealloc_T796.pyx Thu Aug 28 20:31:06 2014 +0200
>> @@ -1,4 +1,5 @@
>>  """
>> +>>> gc.collect()
>>  >>> x = SimpleGarbage()
>>  SimpleGarbage(1) __cinit__
>>  >>> del x
>> =========================================
> 
> This patch does not help (for Cython 0.21 beta 2).

Then I hope that this fixes it:

https://github.com/cython/cython/commit/268810da652f702415a18c846b98ee376df8d011

Stefan



More information about the cython-devel mailing list