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 | |
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
-rw-r--r-- | numpy/core/tests/test_umath_accuracy.py | 3 | ||||
-rwxr-xr-x | tools/pypy-test.sh | 2 |
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 |