Recently playing with cython I found this issue:

latest cython from github, ubuntu 10.10

vitja@vitja-laptop:~/work/cython.git$ python runtests.py -vv --no-cpp
--no-annotate libc
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5]

Running tests against Cython 0.14.1rc2

test_all (Cython.Debugger.Tests.TestLibCython.TestAll) ... warning:
codefile.pyx:25:6: 'eggs' redeclared
FAIL
compiling (c) libc_all ... ok
compiling (c) libc_errno ... ok
compiling (c) libc_math ... ok
compiling (c) libc_signal ... ok

======================================================================
FAIL: test_all (Cython.Debugger.Tests.TestLibCython.TestAll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vitja/work/cython.git/Cython/Debugger/Tests/TestLibCython.py",
line 219, in test_all
    self.assertEquals(0, self.p.wait(), errmsg)
AssertionError:
******************************   v INSIDE GDB v   ******************************
F...Function "__pyx_pf_8codefile_5outer_inner" not defined.
..................
======================================================================
FAIL: test_backtrace (Cython.Debugger.Tests.test_libcython_in_gdb.TestBacktrace)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/vitja/work/cython.git/Cython/Debugger/Tests/test_libcython_in_gdb.py",
line 38, in wrapper
    return func(self, *args, **kwargs)
  File 
"/home/vitja/work/cython.git/Cython/Debugger/Tests/test_libcython_in_gdb.py",
line 300, in test_backtrace
    assert re.search(r'\#0 *0x.* in main\(\)', result), result
AssertionError: #0  0x00000000004172a0 in _start()
#1  0x00007ffff69dac90 in __libc_start_main()
#2  0x00000000004176c0 in Py_Main()
#3  0x00000000004c7fe0 in PyRun_SimpleStringFlags()
#4  0x00000000004c7990 in PyRun_StringFlags()
#5  0x0000000000000000 in run_mod()
#6  0x00000000004a6c70 in PyEval_EvalCode()
#7  0x00000000004a62c0 in PyEval_EvalCodeEx()
#8  0x00000000004a0040 in <module>() at <string>:1
#9  0x000000000049f010 in PyEval_CallObjectWithKeywords()
#10 0x000000000041c990 in PyObject_Call()
#11 0x000000000049eb70 in builtin___import__()
#12 0x00000000004bd0f0 in PyImport_ImportModuleLevel()
#13 0x00000000004bc9e0 in import_module_level()
#14 0x00000000004bc480 in load_next()
#15 0x00000000004bc170 in import_submodule()
#16 0x00000000004bdc80 in _PyImport_LoadDynamicModule()
#17 0x00007ffff63f3eb6 in codefile() at /tmp/tmpzs9Dzt/codefile.pyx:46
        46    spam()
#18 0x000000000041c990 in PyObject_Call()
#19 0x00007ffff63f2d7c in spam() at /tmp/tmpzs9Dzt/codefile.pyx:22
        22        os.path.join("foo", "bar")
#20 0x000000000041c990 in PyObject_Call()
#21 0x0000000000535aa0 in function_call()
#22 0x00000000004a62c0 in PyEval_EvalCodeEx()
#23 0x00000000004a0040 in join() at /usr/lib/python2.6/posixpath.py:59
        59    def join(a, *p):


----------------------------------------------------------------------
Ran 22 tests in 8.739s

FAILED (failures=1)
.....
----------------------------------------------------------------------
Ran 5 tests in 1.641s

OK
close failed in file object destructor:
IOError: [Errno 9]
\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439
\u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440
\u0444\u0430\u0439\u043b\u0430
******************************   ^ INSIDE GDB ^   ******************************

----------------------------------------------------------------------
Ran 5 tests in 14.643s

FAILED (failures=1)
ALL DONE


-- 
vitja.
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to