[Cython] Cython 0.16 RC 1

mark florisson markflorisson88 at gmail.com
Sat Apr 14 13:02:01 CEST 2012


On 14 April 2012 12:00, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Arfrever Frehtes Taifersar Arahesis, 14.04.2012 12:16:
>> 4 tests still fail with Python 3.2 (currently 3.2.3).
>> All tests pass with Python 2.6.8, 2.7.3 and 3.1.5.
>
> Thanks for the report.
>

Indeed, I just pushed a fix here:
https://github.com/markflorisson88/cython/tree/release

Afrever, could you retry running this tests, i.e.

    python runtests.py -vv 'run\.withstat'

Thanks for the help!

>> Failures with Python 3.2:
>>
>> ======================================================================
>> FAIL: NestedWith (withstat)
>> Doctest: withstat.NestedWith
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File "/usr/lib64/python3.2/doctest.py", line 2153, in runTest
>>     raise self.failureException(self.format_failure(new.getvalue()))
>> AssertionError: Failed doctest test for withstat.NestedWith
>>   File "/var/tmp/portage/dev-python/cython-0.16_rc1/work/Cython-0.16rc1/tests-3.2/run/c/withstat.cpython-32.so", line unknown line number, in NestedWith
>>
>> ----------------------------------------------------------------------
>> File "/var/tmp/portage/dev-python/cython-0.16_rc1/work/Cython-0.16rc1/tests-3.2/run/c/withstat.cpython-32.so", line ?, in withstat.NestedWith
>> Failed example:
>>     NestedWith().runTest()
>> Exception raised:
>>     Traceback (most recent call last):
>>       File "/usr/lib64/python3.2/doctest.py", line 1288, in __run
>>         compileflags, 1), test.globs)
>>       File "<doctest withstat.NestedWith[0]>", line 1, in <module>
>>         NestedWith().runTest()
>>       File "withstat.pyx", line 183, in withstat.NestedWith.runTest (withstat.c:5574)
>>       File "withstat.pyx", line 222, in withstat.NestedWith.testEnterReturnsTuple (withstat.c:8101)
>>       File "withstat.pyx", line 223, in withstat.NestedWith.testEnterReturnsTuple (withstat.c:7989)
>>       File "withstat.pyx", line 224, in withstat.NestedWith.testEnterReturnsTuple (withstat.c:7838)
>>       File "/usr/lib64/python3.2/unittest/case.py", line 1169, in deprecated_func
>>         DeprecationWarning, 2)
>>       File "/usr/lib64/python3.2/warnings.py", line 18, in showwarning
>>         file.write(formatwarning(message, category, filename, lineno, line))
>>       File "/usr/lib64/python3.2/warnings.py", line 25, in formatwarning
>>         line = linecache.getline(filename, lineno) if line is None else line
>>       File "/usr/lib64/python3.2/linecache.py", line 15, in getline
>>         lines = getlines(filename, module_globals)
>>       File "/usr/lib64/python3.2/doctest.py", line 1372, in __patched_linecache_getlines
>>         return self.save_linecache_getlines(filename, module_globals)
>>       File "/usr/lib64/python3.2/linecache.py", line 41, in getlines
>>         return updatecache(filename, module_globals)
>>       File "/usr/lib64/python3.2/linecache.py", line 127, in updatecache
>>         lines = fp.readlines()
>>       File "/usr/lib64/python3.2/codecs.py", line 300, in decode
>>         (result, consumed) = self._buffer_decode(data, self.errors, final)
>>     UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf8 in position 40: invalid start byte
>
> This looks like it's trying to print a DeprecationWarning because of some
> unittest related problem and fails to format the message for it. Doesn't
> look Cython related, but I'll see if I can find out something about this.
>
> Stefan
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> http://mail.python.org/mailman/listinfo/cython-devel


More information about the cython-devel mailing list