[Scipy-tickets] [SciPy] #855: Python2.6 test_add_function_ordered Key error

SciPy scipy-tickets@scipy....
Sat Jan 24 10:53:59 CST 2009


#855: Python2.6 test_add_function_ordered Key error
--------------------+-------------------------------------------------------
 Reporter:  nils    |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  0.7.0   
Component:  Other   |     Version:  devel   
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 {{{
 ======================================================================
 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
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/855>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list