summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-02-15 15:32:32 -0700
committerCharles Harris <charlesr.harris@gmail.com>2014-02-15 15:32:32 -0700
commitb5553b5af835d4581d503f99040749d2f11afd31 (patch)
tree2c8067b721b6825251198bf2fee66f7e5122155d
parent76195c789a236e5b5f3520f3eced6be31384497a (diff)
parent3248aa7d59afbb4c649ffd40e95b17e63de77c94 (diff)
downloadnumpy-b5553b5af835d4581d503f99040749d2f11afd31.tar.gz
Merge pull request #4298 from charris/fix-gh-3146
BUG: Fix wrong variable in test_build.py exception.
-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 = []