diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2019-09-19 14:28:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 14:28:52 -0700 |
commit | c5f98bda9eaa8165567f71527fb16e9ed6789a9d (patch) | |
tree | 4cc96e5f100dd109386200efa2cbdae4c3c45b1a /numpy | |
parent | 66fa2d7926d382d8ac59813e83d5a1c318c1ef6d (diff) | |
parent | b5b9f2c4f881c876c4cda24d0789f0fa95477b73 (diff) | |
download | numpy-c5f98bda9eaa8165567f71527fb16e9ed6789a9d.tar.gz |
Merge pull request #14525 from mattip/pypy
BUILD, MAINT: run tests with verbose for PyPY, also do not leak resource
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_umath_accuracy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/tests/test_umath_accuracy.py b/numpy/core/tests/test_umath_accuracy.py index fcbed0dd3..0bab04df2 100644 --- a/numpy/core/tests/test_umath_accuracy.py +++ b/numpy/core/tests/test_umath_accuracy.py @@ -35,7 +35,8 @@ class TestAccuracy(object): for filename in files: data_dir = path.join(path.dirname(__file__), 'data') filepath = path.join(data_dir, filename) - file_without_comments = (r for r in open(filepath) if not r[0] in ('$', '#')) + with open(filepath) as fid: + file_without_comments = (r for r in fid if not r[0] in ('$', '#')) data = np.genfromtxt(file_without_comments, dtype=('|S39','|S39','|S39',np.int), names=('type','input','output','ulperr'), |