Commit 686895b1 authored by Jason R. Coombs's avatar Jason R. Coombs

Cleanup indentation

parent 00de7109
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment