summaryrefslogtreecommitdiff
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
parent33d5f9c23da18ed3b5ed5b8efc5c26297ed2d7ea (diff)
downloadnumpy-b5b9f2c4f881c876c4cda24d0789f0fa95477b73.tar.gz
BUILD, MAINT: run tests with verbose for PyPY, also do not leak resource
-rw-r--r--numpy/core/tests/test_umath_accuracy.py3
-rwxr-xr-xtools/pypy-test.sh2
2 files changed, 3 insertions, 2 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'),
diff --git a/tools/pypy-test.sh b/tools/pypy-test.sh
index 388a5b75f..5940cc75a 100755
--- a/tools/pypy-test.sh
+++ b/tools/pypy-test.sh
@@ -39,7 +39,7 @@ echo pypy3 version
pypy3/bin/pypy3 -c "import sys; print(sys.version)"
echo
-pypy3/bin/pypy3 runtests.py --show-build-log -- -rsx \
+pypy3/bin/pypy3 runtests.py --show-build-log -v -- -rsx \
--junitxml=junit/test-results.xml --durations 10
echo Make sure the correct openblas has been linked in