[Cython] Cython 0.21 beta 1 released
Arfrever Frehtes Taifersar Arahesis
arfrever.fta at gmail.com
Sun Aug 31 10:29:05 CEST 2014
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
Doctest: bufaccess.__test__.acquire_failure2 ... ok
Doctest: bufaccess.__test__.acquire_failure3 ... ok
Doctest: bufaccess.__test__.acquire_failure4 ... ok
Doctest: bufaccess.__test__.acquire_failure5 ... ok
Doctest: bufaccess.__test__.acquire_nonbuffer1 ... ok
Doctest: bufaccess.__test__.acquire_nonbuffer2 ... ok
Doctest: bufaccess.__test__.acquire_raise ... ok
Doctest: bufaccess.__test__.acquire_release ... ok
Doctest: bufaccess.__test__.as_argument ... ok
Doctest: bufaccess.__test__.as_argument_defval ... ok
Doctest: bufaccess.__test__.as_argument_not_none ... ok
Doctest: bufaccess.__test__.assign_temporary_to_object ... ok
Doctest: bufaccess.__test__.assign_to_object ... ok
Doctest: bufaccess.__test__.basic_struct ... ok
Doctest: bufaccess.__test__.bufdefaults1 ... ok
Doctest: bufaccess.__test__.buffer_cast ... ok
Doctest: bufaccess.__test__.buffer_cast_fails ... ok
Doctest: bufaccess.__test__.buffer_nogil ... ok
Doctest: bufaccess.__test__.buffer_nogil_oob ... ok
Doctest: bufaccess.__test__.c_contig ... ok
Doctest: bufaccess.__test__.c_contig_2d ... ok
Doctest: bufaccess.__test__.cascaded_buffer_assignment ... ok
Doctest: bufaccess.__test__.cdef_assignment ... ok
Doctest: bufaccess.__test__.complex_dtype ... ok
Doctest: bufaccess.__test__.complex_inplace ... ok
Doctest: bufaccess.__test__.complex_struct_dtype ... ok
Doctest: bufaccess.__test__.complex_struct_inplace ... ok
Doctest: bufaccess.__test__.explicitly_release_buffer ... ok
Doctest: bufaccess.__test__.f_contig ... ok
Doctest: bufaccess.__test__.f_contig_2d ... ok
Doctest: bufaccess.__test__.forin_assignment ... ok
Doctest: bufaccess.__test__.get_int_2d ... ok
Doctest: bufaccess.__test__.get_int_2d_uintindex ... ok
Doctest: bufaccess.__test__.inplace_operators ... ok
Doctest: bufaccess.__test__.list_comprehension ... ok
Doctest: bufaccess.__test__.mixed_get ... ok
Doctest: bufaccess.__test__.nested_packed_struct ... ok
Doctest: bufaccess.__test__.nested_struct ... ok
Doctest: bufaccess.__test__.no_negative_indices ... ok
Doctest: bufaccess.__test__.packed_struct ... ok
Doctest: bufaccess.__test__.printbuf_float ... ok
Doctest: bufaccess.__test__.printbuf_int_2d ... ok
Doctest: bufaccess.__test__.printbuf_object ... ok
Doctest: bufaccess.__test__.printbuf_td_cy_int ... ok
Doctest: bufaccess.__test__.printbuf_td_h_cy_short ... ok
Doctest: bufaccess.__test__.printbuf_td_h_double ... ok
Doctest: bufaccess.__test__.printbuf_td_h_short ... ok
Doctest: bufaccess.__test__.printbuf_td_h_ushort ... ok
Doctest: bufaccess.__test__.readonly ... ok
Doctest: bufaccess.__test__.safe_get ... ok
Doctest: bufaccess.__test__.set_int_2d ... ok
Doctest: bufaccess.__test__.strided ... ok
Doctest: bufaccess.__test__.test_inplace_assignment ... ok
Doctest: bufaccess.__test__.tuple_buffer_assignment1 ... ok
Doctest: bufaccess.__test__.tuple_buffer_assignment2 ... ok
Doctest: bufaccess.__test__.typedbuffer1 ... ok
Doctest: bufaccess.__test__.typedbuffer2 ... ok
Doctest: bufaccess.__test__.unsafe_get ... ok
Doctest: bufaccess.__test__.unsafe_get_nonegative ... ok
Doctest: bufaccess.__test__.wraparound_directive ... ok
Doctest: bufaccess.__test__.writable ... ok
warning: left-over threads found after running test:
...<HistorySavingThread(Thread-1, started 140020768708352)>
ERROR
> > ======================================================================
> > 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).
--
Arfrever Frehtes Taifersar Arahesis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20140831/29c87e83/attachment.sig>
More information about the cython-devel
mailing list