[Numpy-svn] [numpy/numpy] 96ea31: MAINT: Get rid of a ResourceWarning.

GitHub noreply@github....
Mon Mar 4 13:06:47 CST 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 96ea318b10e31c405798a3f96d93b418d188969d
      https://github.com/numpy/numpy/commit/96ea318b10e31c405798a3f96d93b418d188969d
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-03-03 (Sun, 03 Mar 2013)

  Changed paths:
    M numpy/distutils/system_info.py

  Log Message:
  -----------
  MAINT: Get rid of a ResourceWarning.

This one in numpy/distutils/system_info.py. Just keep an explicit
reference to a file, then close it.


  Commit: 31a68dde93137eef779addb005f82ce0a57585e4
      https://github.com/numpy/numpy/commit/31a68dde93137eef779addb005f82ce0a57585e4
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-03-03 (Sun, 03 Mar 2013)

  Changed paths:
    M numpy/lib/tests/test_io.py

  Log Message:
  -----------
  TST: Get rid of a ResourceWarning.

I'm not sure this is the right fix, but test_closing_fid need to check
that garbage collection will close a file that goes through a bunch of
openings followed by dropping the reference. So the fix is to ignore
warnings during the test. I'd just ignore ResourceWarning, but it does
not look to be a built in warning in Python 2.7.


  Commit: 3ba223e867dd6a2bda130d0630ee9aad3c32ae97
      https://github.com/numpy/numpy/commit/3ba223e867dd6a2bda130d0630ee9aad3c32ae97
  Author: njsmith <njs@pobox.com>
  Date:   2013-03-04 (Mon, 04 Mar 2013)

  Changed paths:
    M numpy/distutils/system_info.py
    M numpy/lib/tests/test_io.py

  Log Message:
  -----------
  Merge pull request #3114 from charris/fix-resource-warnings

Fix resource warnings


Compare: https://github.com/numpy/numpy/compare/e1055868eb6c...3ba223e867dd


More information about the Numpy-svn mailing list