Remove unnecessary list conversion

pull/17088/head
Richard Belleville 6 years ago
parent 666fb1c5ee
commit ac0904b569
  1. 4
      tools/run_tests/run_tests.py

@ -158,7 +158,7 @@ class Config(object):
would like to run would like to run
""" """
actual_environ = self.environ.copy() actual_environ = self.environ.copy()
for k, v in list(environ.items()): for k, v in environ.items():
actual_environ[k] = v actual_environ[k] = v
if not flaky and shortname and shortname in flaky_tests: if not flaky and shortname and shortname in flaky_tests:
flaky = True flaky = True
@ -1653,7 +1653,7 @@ build_steps = list(
if make_targets: if make_targets:
make_commands = itertools.chain.from_iterable( make_commands = itertools.chain.from_iterable(
make_jobspec(build_config, list(targets), makefile) make_jobspec(build_config, list(targets), makefile)
for (makefile, targets) in list(make_targets.items())) for (makefile, targets) in make_targets.items())
build_steps.extend(set(make_commands)) build_steps.extend(set(make_commands))
build_steps.extend( build_steps.extend(
set( set(

Loading…
Cancel
Save