joblib/joblib — pull request #29 by yarikoptic (2012-02-05 21:13:07+00:00)
Title: BUG: indent zfile.close() appropriately + minor spell checks

There is more of unittests failing remaining (or do they pass for you?)
> python setup.py test
...
.............................FF.................
======================================================================
FAIL: joblib.test.test_numpy_pickle.test_numpy_persistence
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/nose/case.py", line 187, in runTest
self.test(*self.arg)
File "/home/yoh/deb/gits/joblib/joblib/test/test_numpy_pickle.py", line 148, in test_numpy_persistence
nose.tools.assert_equal(len(filenames), len(obj) + 1)
AssertionError: 1 != 2
-------------------- >> begin captured stdout << ---------------------
Failed to save to .npy file:
Traceback (most recent call last):
File "/home/yoh/deb/gits/joblib/joblib/numpy_pickle.py", line 238, in save
obj, filename = self._write_array(obj, filename)
File "/home/yoh/deb/gits/joblib/joblib/numpy_pickle.py", line 210, in _write_array
write_zfile(zfile, state[-1],
UnboundLocalError: local variable 'state' referenced before assignment

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: joblib.test.test_numpy_pickle.test_memmap_persistence(False,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/nose/case.py", line 187, in runTest
self.test(*self.arg)
AssertionError: False is not true