Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/863 on 2009-02-01 by @nilswagner01, assigned to unknown.

======================================================================
ERROR: test_add_function_ordered (test_catalog.TestCatalog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 279, in test_add_function_ordered
q.add_function('f',string.upper)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 653, in add_function
self.add_function_persistent(code,function)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent
function_list = function_list + cat.get(code,[])
File "/usr/lib64/python2.6/shelve.py", line 113, in get
if key in self.dict:
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__
pos, siz = self._index[key] # may raise KeyError
KeyError: 0

======================================================================
ERROR: Test persisting a function in the default catalog
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 267, in test_add_function_persistent1
q.add_function_persistent('code',i)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent
function_list = function_list + cat.get(code,[])
File "/usr/lib64/python2.6/shelve.py", line 113, in get
if key in self.dict:
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__
pos, siz = self._index[key] # may raise KeyError
KeyError: 0

======================================================================
ERROR: Shouldn't get a single file from the temp dir.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 195, in test_get_existing_files2
q.add_function('code', os.getpid)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 653, in add_function
self.add_function_persistent(code,function)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent
function_list = function_list + cat.get(code,[])
File "/usr/lib64/python2.6/shelve.py", line 113, in get
if key in self.dict:
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__
pos, siz = self._index[key] # may raise KeyError
KeyError: 0

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/855 on 2009-01-24 by @nilswagner01, assigned to unknown.

======================================================================
ERROR: test_add_function_ordered (test_catalog.TestCatalog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 279, in test_add_function_ordered
q.add_function('f',string.upper)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 653, in add_function
self.add_function_persistent(code,function)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent
function_list = function_list + cat.get(code,[])
File "/usr/lib64/python2.6/shelve.py", line 113, in get
if key in self.dict:
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__
pos, siz = self._index[key] # may raise KeyError
KeyError: 0

======================================================================
ERROR: Test persisting a function in the default catalog
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 267, in test_add_function_persistent1
q.add_function_persistent('code',i)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent
function_list = function_list + cat.get(code,[])
File "/usr/lib64/python2.6/shelve.py", line 113, in get
if key in self.dict:
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__
pos, siz = self._index[key] # may raise KeyError
KeyError: 0

======================================================================
ERROR: Shouldn't get a single file from the temp dir.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 195, in test_get_existing_files2
q.add_function('code', os.getpid)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 653, in add_function
self.add_function_persistent(code,function)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent
function_list = function_list + cat.get(code,[])
File "/usr/lib64/python2.6/shelve.py", line 113, in get
if key in self.dict:
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__
pos, siz = self._index[key] # may raise KeyError
KeyError: 0