aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-10-12 10:09:52 +0200
committerJason R. Coombs <jaraco@jaraco.com>2017-10-12 10:09:52 +0200
commit3e8bb3bcc17f349a20bf70c2678a154d8ff693b6 (patch)
tree08070f52e64ead00192106561bb58827e23e9f46 /setuptools/tests
parent35d77eb73fe9a91b49f7b73d84092036680282c9 (diff)
downloadexternal_python_setuptools-3e8bb3bcc17f349a20bf70c2678a154d8ff693b6.tar.gz
external_python_setuptools-3e8bb3bcc17f349a20bf70c2678a154d8ff693b6.tar.bz2
external_python_setuptools-3e8bb3bcc17f349a20bf70c2678a154d8ff693b6.zip
Reindent for nicer lines
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_pep517.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/setuptools/tests/test_pep517.py b/setuptools/tests/test_pep517.py
index dd32572d..fa6628ec 100644
--- a/setuptools/tests/test_pep517.py
+++ b/setuptools/tests/test_pep517.py
@@ -26,10 +26,9 @@ class BuildBackend(BuildBackendBase):
def __getattr__(self, name):
"""Handles aribrary function invocations on the build backend."""
def method(*args, **kw):
- return self.pool.submit(
- BuildBackendCaller(os.path.abspath(self.cwd), self.env,
- self.backend_name),
- name, *args, **kw).result()
+ root = os.path.abspath(self.cwd)
+ caller = BuildBackendCaller(root, self.env, self.backend_name)
+ return self.pool.submit(caller, name, *args, **kw).result()
return method
@@ -91,5 +90,4 @@ def test_prepare_metadata_for_build_wheel(build_backend):
dist_info = build_backend.prepare_metadata_for_build_wheel(dist_dir)
- assert os.path.isfile(os.path.join(dist_dir, dist_info,
- 'METADATA'))
+ assert os.path.isfile(os.path.join(dist_dir, dist_info, 'METADATA'))