summaryrefslogtreecommitdiff
path: root/numpy/core/tests
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-09-16 12:28:35 +0300
committermattip <matti.picus@gmail.com>2019-09-16 12:28:35 +0300
commitb5b9f2c4f881c876c4cda24d0789f0fa95477b73 (patch)
tree113421475445c9a55494911066f7dd6ec9cd5eb8 /numpy/core/tests
parent33d5f9c23da18ed3b5ed5b8efc5c26297ed2d7ea (diff)
downloadnumpy-b5b9f2c4f881c876c4cda24d0789f0fa95477b73.tar.gz
BUILD, MAINT: run tests with verbose for PyPY, also do not leak resource
Diffstat (limited to 'numpy/core/tests')
-rw-r--r--numpy/core/tests/test_umath_accuracy.py3
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'),