summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-11-25 08:50:25 -0500
committerJason R. Coombs <jaraco@jaraco.com>2017-11-25 09:05:49 -0500
commit686895b17c4ebefcaa6066f5d34db7304cf1a33f (patch)
tree3f60ff27ea62ac2d203c3417403091e47e6c515d
parent00de710988226c3189bd6abb13cfa87c7d97de5b (diff)
downloadpython-setuptools-git-686895b17c4ebefcaa6066f5d34db7304cf1a33f.tar.gz
Cleanup indentation
-rw-r--r--setuptools/tests/test_egg_info.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index a97d0c84..d4b79d63 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -191,7 +191,8 @@ class TestEggInfo(object):
test_params = test.lstrip().split('\n\n', 3)
name_kwargs = test_params.pop(0).split('\n')
if len(name_kwargs) > 1:
- install_cmd_kwargs = ast.literal_eval(name_kwargs[1].strip())
+ val = name_kwargs[1].strip()
+ install_cmd_kwargs = ast.literal_eval(val)
else:
install_cmd_kwargs = {}
name = name_kwargs[0].strip()
@@ -211,9 +212,11 @@ class TestEggInfo(object):
expected_requires,
install_cmd_kwargs,
marks=marks))
- return pytest.mark.parametrize('requires,use_setup_cfg,'
- 'expected_requires,install_cmd_kwargs',
- argvalues, ids=idlist)
+ return pytest.mark.parametrize(
+ 'requires,use_setup_cfg,'
+ 'expected_requires,install_cmd_kwargs',
+ argvalues, ids=idlist,
+ )
@RequiresTestHelper.parametrize(
# Format of a test:
@@ -361,9 +364,9 @@ class TestEggInfo(object):
mismatch_marker=mismatch_marker,
mismatch_marker_alternate=mismatch_marker_alternate,
)
- def test_requires(self, tmpdir_cwd, env,
- requires, use_setup_cfg,
- expected_requires, install_cmd_kwargs):
+ def test_requires(
+ self, tmpdir_cwd, env, requires, use_setup_cfg,
+ expected_requires, install_cmd_kwargs):
self._setup_script_with_requires(requires, use_setup_cfg)
self._run_install_command(tmpdir_cwd, env, **install_cmd_kwargs)
egg_info_dir = os.path.join('.', 'foo.egg-info')