Picon

Re: [Cython] Cython 0.16 RC 1

2012-04-12 16:38:37 mark florisson napisał(a):
> Yet another release candidate, this will hopefully be the last before
> the 0.16 release. You can grab it from here:
> http://wiki.cython.org/ReleaseNotes-0.16
> 
> There were several fixes for the numpy attribute rewrite, memoryviews
> and fused types. Accessing the 'base' attribute of a typed ndarray now
> goes through the object layer, which means direct assignment is no
> longer supported.
> 
> If there are any problems, please let us know.

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.

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

======================================================================
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/cpp/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/cpp/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.cpp:5574)
      File "withstat.pyx", line 222, in withstat.NestedWith.testEnterReturnsTuple (withstat.cpp:8101)
      File "withstat.pyx", line 223, in withstat.NestedWith.testEnterReturnsTuple (withstat.cpp:7989)
      File "withstat.pyx", line 224, in withstat.NestedWith.testEnterReturnsTuple (withstat.cpp: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 0xf0 in position 24: invalid continuation byte

======================================================================
FAIL: NestedWith (withstat_py)
Doctest: withstat_py.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_py.NestedWith
  File
"/var/tmp/portage/dev-python/cython-0.16_rc1/work/Cython-0.16rc1/tests-3.2/run/c/withstat_py.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_py.cpython-32.so",
line ?, in withstat_py.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_py.NestedWith[0]>", line 1, in <module>
        NestedWith().runTest()
      File "withstat_py.py", line 250, in withstat_py.NestedWith.runTest (withstat_py.c:7262)
      File "withstat_py.py", line 289, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.c:9789)
      File "withstat_py.py", line 290, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.c:9677)
      File "withstat_py.py", line 291, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.c:9526)
      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 0xa0 in position 24: invalid start byte

======================================================================
FAIL: NestedWith (withstat_py)
Doctest: withstat_py.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_py.NestedWith
  File
"/var/tmp/portage/dev-python/cython-0.16_rc1/work/Cython-0.16rc1/tests-3.2/run/cpp/withstat_py.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/cpp/withstat_py.cpython-32.so",
line ?, in withstat_py.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_py.NestedWith[0]>", line 1, in <module>
        NestedWith().runTest()
      File "withstat_py.py", line 250, in withstat_py.NestedWith.runTest (withstat_py.cpp:7262)
      File "withstat_py.py", line 289, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.cpp:9789)
      File "withstat_py.py", line 290, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.cpp:9677)
      File "withstat_py.py", line 291, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.cpp:9526)
      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 0x90 in position 24: invalid start byte

----------------------------------------------------------------------
Ran 6485 tests in 2413.255s

FAILED (failures=4)
ALL DONE

-- 
Arfrever Frehtes Taifersar Arahesis
2012-04-12 16:38:37 mark florisson napisał(a):
> Yet another release candidate, this will hopefully be the last before
> the 0.16 release. You can grab it from here:
> http://wiki.cython.org/ReleaseNotes-0.16
> 
> There were several fixes for the numpy attribute rewrite, memoryviews
> and fused types. Accessing the 'base' attribute of a typed ndarray now
> goes through the object layer, which means direct assignment is no
> longer supported.
> 
> If there are any problems, please let us know.

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.

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

======================================================================
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/cpp/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/cpp/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.cpp:5574)
      File "withstat.pyx", line 222, in withstat.NestedWith.testEnterReturnsTuple (withstat.cpp:8101)
      File "withstat.pyx", line 223, in withstat.NestedWith.testEnterReturnsTuple (withstat.cpp:7989)
      File "withstat.pyx", line 224, in withstat.NestedWith.testEnterReturnsTuple (withstat.cpp: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 0xf0 in position 24: invalid continuation byte

======================================================================
FAIL: NestedWith (withstat_py)
Doctest: withstat_py.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_py.NestedWith
  File
"/var/tmp/portage/dev-python/cython-0.16_rc1/work/Cython-0.16rc1/tests-3.2/run/c/withstat_py.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_py.cpython-32.so",
line ?, in withstat_py.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_py.NestedWith[0]>", line 1, in <module>
        NestedWith().runTest()
      File "withstat_py.py", line 250, in withstat_py.NestedWith.runTest (withstat_py.c:7262)
      File "withstat_py.py", line 289, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.c:9789)
      File "withstat_py.py", line 290, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.c:9677)
      File "withstat_py.py", line 291, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.c:9526)
      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 0xa0 in position 24: invalid start byte

======================================================================
FAIL: NestedWith (withstat_py)
Doctest: withstat_py.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_py.NestedWith
  File
"/var/tmp/portage/dev-python/cython-0.16_rc1/work/Cython-0.16rc1/tests-3.2/run/cpp/withstat_py.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/cpp/withstat_py.cpython-32.so",
line ?, in withstat_py.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_py.NestedWith[0]>", line 1, in <module>
        NestedWith().runTest()
      File "withstat_py.py", line 250, in withstat_py.NestedWith.runTest (withstat_py.cpp:7262)
      File "withstat_py.py", line 289, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.cpp:9789)
      File "withstat_py.py", line 290, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.cpp:9677)
      File "withstat_py.py", line 291, in withstat_py.NestedWith.testEnterReturnsTuple (withstat_py.cpp:9526)
      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 0x90 in position 24: invalid start byte

----------------------------------------------------------------------
Ran 6485 tests in 2413.255s

FAILED (failures=4)
ALL DONE

--

-- 
Arfrever Frehtes Taifersar Arahesis

Gmane