diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-03-10 14:37:38 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-03-12 07:46:19 -0600 |
commit | 1a643b719226b0411e62a28192dbc2f4bf51b5b9 (patch) | |
tree | 1a5843b9452b71ce6b8ffab1733852315fe1f8f4 | |
parent | 2d9ef04f274d6ef6b2ac1d269a763a4565480caa (diff) | |
download | numpy-1a643b719226b0411e62a28192dbc2f4bf51b5b9.tar.gz |
PY3: Fix test, "ResourceWarning: unclosed file".
-rw-r--r-- | numpy/core/tests/test_records.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/tests/test_records.py b/numpy/core/tests/test_records.py index 8f1fdda1a..87c661938 100644 --- a/numpy/core/tests/test_records.py +++ b/numpy/core/tests/test_records.py @@ -43,6 +43,7 @@ class TestFromrecords(TestCase): r = np.rec.fromfile(fd, formats='f8,i4,a5', shape=3, byteorder='big') fd.seek(2880 * 2) r = np.rec.array(fd, formats='f8,i4,a5', shape=3, byteorder='big') + fd.close() def test_recarray_from_obj(self): count = 10 |