diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-03-10 14:38:52 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-03-12 07:46:19 -0600 |
commit | 84f324a6d4846a61a9ac8c1a4a933a9f16d79b54 (patch) | |
tree | 59ab055678cd30b1e6febc8e1e8dca0c744b8e25 /numpy/linalg | |
parent | 1a643b719226b0411e62a28192dbc2f4bf51b5b9 (diff) | |
download | numpy-84f324a6d4846a61a9ac8c1a4a933a9f16d79b54.tar.gz |
PY3: Fix FindDependenciesLdd "ResourceWarning: unclosed file".
Diffstat (limited to 'numpy/linalg')
-rw-r--r-- | numpy/linalg/tests/test_build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/linalg/tests/test_build.py b/numpy/linalg/tests/test_build.py index e9d52c876..691fd7a6b 100644 --- a/numpy/linalg/tests/test_build.py +++ b/numpy/linalg/tests/test_build.py @@ -13,7 +13,8 @@ class FindDependenciesLdd(object): self.cmd = ['ldd'] try: - st = call(self.cmd, stdout=PIPE, stderr=PIPE) + p = Popen(self.cmd, stdout=PIPE, stderr=PIPE) + stdout, stderr = p.communicate() except OSError: raise RuntimeError("command %s cannot be run" % self.cmd) |