[SciPy-dev] New tarballs for weave

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sat Jan 12 22:31:52 CST 2002


>>>>> "eric" == eric  <eric at scipy.org> writes:

    eric> I'd been interested in reports of success or failure of
    eric> weave.test() on any and all architectures.  Instructions for
    eric> testing are on the page.

Here are more tests with the latest cvs tree.

$ cd cvs/scipy/weave/tests; python
[snip]
>>> import test_catalog
>>> test_catalog.test()
..........repairing catalog by removing key
repairing catalog by removing key
repairing catalog by removing key
repairing catalog by removing key
repairing catalog by removing key
repairing catalog by removing key
FE..............
======================================================================
ERROR: Test persisting a function in the default catalog
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave/tests/test_catalog.py", line 275, in check_add_function_persistent1
    q.add_function_persistent('code',i)
  File "weave/catalog.py", line 579, in add_function_persistent
NameError: global name 'pickle' is not defined
======================================================================
FAIL: check_add_function_ordered (test_catalog.test_catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave/tests/test_catalog.py", line 330, in check_add_function_ordered
    assert(funcs1[:2] == [string.lower,string.upper])
AssertionError
----------------------------------------------------------------------
Ran 26 tests in 1.254s

FAILED (failures=1, errors=1)


The first error I think can be fixed with an import pickle added to
catalog.py.  I did that (I just committed it) and then I get the same
old error.

======================================================================
ERROR: Test persisting a function in the default catalog
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave/tests/test_catalog.py", line 275, in check_add_function_persistent1
    q.add_function_persistent('code',i)
  File "/skratch/prabhu/scipy/cvs/scipy/weave/catalog.py", line 578, in add_function_persistent
    function_list = function_list + cat.get(code,[])
  File "/usr/local/lib/python2.1/shelve.py", line 66, in get
    return self[key]
  File "/usr/local/lib/python2.1/shelve.py", line 71, in __getitem__
    return Unpickler(f).load()
UnpicklingError: pickle data was truncated
======================================================================
FAIL: check_add_function_ordered (test_catalog.test_catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "weave/tests/test_catalog.py", line 330, in check_add_function_ordered
    assert(funcs1[:2] == [string.lower,string.upper])
AssertionError
----------------------------------------------------------------------
Ran 26 tests in 1.216s

FAILED (failures=1, errors=1)

Why is this happening?  Shouldnt the try block catch it?  I'll try to
take a look at this.

prabhu



More information about the Scipy-dev mailing list