diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-18 09:27:23 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-18 09:27:23 -0400 |
commit | 2148592395ef4da0d408be26bf5839117ee0e5fe (patch) | |
tree | 3fded30b5ebbc76ca8f115d177bb7f320b721f54 | |
parent | 2f3b7b204187a1c93c391ffac96a9220cbb57f91 (diff) | |
download | external_python_setuptools-2148592395ef4da0d408be26bf5839117ee0e5fe.tar.gz external_python_setuptools-2148592395ef4da0d408be26bf5839117ee0e5fe.tar.bz2 external_python_setuptools-2148592395ef4da0d408be26bf5839117ee0e5fe.zip |
Even better, use a static method
-rw-r--r-- | setuptools/command/test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py index 48d5b5e1..38bbcd8b 100644 --- a/setuptools/command/test.py +++ b/setuptools/command/test.py @@ -186,18 +186,18 @@ class test(Command): else: os.environ['PYTHONPATH'] = orig_pythonpath - def install_dists(self): + @staticmethod + def install_dists(dist): """ Install the requirements indicated by self.distribution and return an iterable of the dists that were built. """ - dist = self.distribution ir_d = dist.fetch_build_eggs(dist.install_requires or []) tr_d = dist.fetch_build_eggs(dist.tests_require or []) return itertools.chain(ir_d, tr_d) def run(self): - installed_dists = self.install_dists() + installed_dists = self.install_dists(self.distribution) cmd = ' '.join(self._argv) if self.dry_run: |