Skip to content

Commit

Permalink
PY3: Fix FindDependenciesLdd "ResourceWarning: unclosed file".
Browse files Browse the repository at this point in the history
  • Loading branch information
charris committed Mar 12, 2012
1 parent 1a643b7 commit 84f324a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/linalg/tests/test_build.py
Expand Up @@ -13,7 +13,8 @@ def __init__(self):
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)

Expand Down

0 comments on commit 84f324a

Please sign in to comment.