[Scipy-tickets] [SciPy] #1385: Python 3.2 "ResourceWarning: unclosed file" during scipy.test()

SciPy Trac scipy-tickets@scipy....
Sat Sep 3 06:59:46 CDT 2011


#1385: Python 3.2 "ResourceWarning: unclosed file" during scipy.test()
----------------------+-----------------------------------------------------
 Reporter:  cjgohlke  |       Owner:  somebody    
     Type:  defect    |      Status:  needs_review
 Priority:  normal    |   Milestone:  Unscheduled 
Component:  Other     |     Version:  0.8.0       
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by tomspur):

 * cc: tomspur@… (added)


Comment:

 There are also two other Resource Warnings here:
 /builddir/build/BUILDROOT/scipy-0.9.0-2.fc17.x86_64/usr/lib64/python3.2
 /site-packages/scipy/io/matlab/tests/test_mio.py:723: ResourceWarning:
 unclosed file <_io.BufferedReader
 name='/builddir/build/BUILDROOT/scipy-0.9.0-2.fc17.x86_64/usr/lib64/python3.2
 /site-packages/scipy/io/matlab/tests/data/single_empty_string.mat'>
        rdr = MatFile5Reader_future(stream)
 ./builddir/build/BUILDROOT/scipy-0.9.0-2.fc17.x86_64/usr/lib64/python3.2
 /site-packages/scipy/io/matlab/tests/test_mio.py:765: ResourceWarning:
 unclosed file <_io.BufferedReader
 name='/builddir/build/BUILDROOT/scipy-0.9.0-2.fc17.x86_64/usr/lib64/python3.2
 /site-packages/scipy/io/matlab/tests/data/testmatrix_6.1_SOL2.mat'>
        rdr = MatFile5Reader_future(open(double_eg, 'rb'), mat_dtype=True)
 /builddir/build/BUILDROOT/scipy-0.9.0-2.fc17.x86_64/usr/lib64/python3.2
 /site-packages/scipy/io/matlab/mio5.py:190: ResourceWarning: unclosed file
 <_io.BufferedReader
 name='/builddir/build/BUILDROOT/scipy-0.9.0-2.fc17.x86_64/usr/lib64/python3.2
 /site-packages/scipy/io/matlab/tests/data/parabola.mat'>
        self._file_reader = VarReader5(self)

 I'm unsure, if they are fixed yet in the repo.

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


More information about the Scipy-tickets mailing list