[NumPy-Tickets] [NumPy] #1583: fromfile/tofile py3k errors on Windows

NumPy Trac numpy-tickets@scipy....
Sat Aug 14 01:56:18 CDT 2010


#1583: fromfile/tofile py3k errors on Windows
------------------------------------+---------------------------------------
 Reporter:  rgommers                |       Owner:  somebody
     Type:  defect                  |      Status:  new     
 Priority:  high                    |   Milestone:  1.5.0   
Component:  numpy.core              |     Version:  devel   
 Keywords:  fromfile, tofile, py3k  |  
------------------------------------+---------------------------------------
 In total 38 errors (see attached), all like this:
 {{{
 ======================================================================
 ERROR: test_multiarray.TestIO.test_ascii
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-
 packages\nose-3.0.0.dev-py3.1.egg\nose\case.py", line 178, in runTest
     self.test(*self.arg)
   File "Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-
 packages\numpy\core\tests\test_multiarray.py", line 1017, in test_ascii
     self._check_from('1 , 2 , 3 , 4', [1.,2.,3.,4.], sep=',')
   File "Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-
 packages\numpy\core\tests\test_multiarray.py", line 980, in _check_from
     y = np.fromfile(self.filename, **kw)
 IOError: first argument must be an open file

 ======================================================================
 ERROR: test_multiarray.TestIO.test_ascii
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-
 packages\nose-3.0.0.dev-py3.1.egg\nose\case.py", line 370, in tearDown
     try_run(self.inst, ('teardown', 'tearDown'))
   File "Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-
 packages\nose-3.0.0.dev-py3.1.egg\nose\util.py", line 469, in try_run
     return func()
   File "Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-
 packages\numpy\core\tests\test_multiarray.py", line 918, in tearDown
     os.unlink(self.filename)
 WindowsError: [Error 32] Sharing violation: 'z:\\var\\folders\\uu
 \\uuxfo1nlfae4yyypscz-xe+++ti\\-tmp-\\tmpdtktwh'
 }}}
 Looks like #1345 is related.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1583>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list