summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-02-15 13:25:31 -0700
committerCharles Harris <charlesr.harris@gmail.com>2014-02-15 15:04:55 -0700
commit3248aa7d59afbb4c649ffd40e95b17e63de77c94 (patch)
treedd28548da5752223958f701555923ae3e58a49fe
parent33337281067bb1253f737b707fc783f6a6455e04 (diff)
downloadnumpy-3248aa7d59afbb4c649ffd40e95b17e63de77c94.tar.gz
BUG: Fix wrong variable in test_build.py exception.
The variable used was not defined, causing an error when the exception was raised. Closes #3146.
-rw-r--r--numpy/linalg/tests/test_build.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/linalg/tests/test_build.py b/numpy/linalg/tests/test_build.py
index 27fbd6429..0d237c81c 100644
--- a/numpy/linalg/tests/test_build.py
+++ b/numpy/linalg/tests/test_build.py
@@ -20,16 +20,16 @@ class FindDependenciesLdd(object):
except OSError:
raise RuntimeError("command %s cannot be run" % self.cmd)
- def get_dependencies(self, file):
- p = Popen(self.cmd + [file], stdout=PIPE, stderr=PIPE)
+ def get_dependencies(self, lfile):
+ p = Popen(self.cmd + [lfile], stdout=PIPE, stderr=PIPE)
stdout, stderr = p.communicate()
if not (p.returncode == 0):
- raise RuntimeError("Failed to check dependencies for %s" % libfile)
+ raise RuntimeError("failed dependencies check for %s" % lfile)
return stdout
- def grep_dependencies(self, file, deps):
- stdout = self.get_dependencies(file)
+ def grep_dependencies(self, lfile, deps):
+ stdout = self.get_dependencies(lfile)
rdeps = dict([(dep, re.compile(dep)) for dep in deps])
founds = []