changeset: 98771:cc42700abb8e branch: 2.7 parent: 98735:6bce28fec911 user: Brett Cannon date: Fri Oct 16 12:30:20 2015 -0700 files: Lib/test/regrtest.py description: Issue #25188: Clean up code to pass the --pgo flag to subprocesses when running the test suite. Patch by Arfrever Frehtes Taifersar Arahesis. diff -r 6bce28fec911 -r cc42700abb8e Lib/test/regrtest.py --- a/Lib/test/regrtest.py Tue Oct 13 22:08:45 2015 -0400 +++ b/Lib/test/regrtest.py Fri Oct 16 12:30:20 2015 -0700 @@ -508,7 +508,8 @@ for test in tests: args_tuple = ( (test, verbose, quiet), - dict(huntrleaks=huntrleaks, use_resources=use_resources) + dict(huntrleaks=huntrleaks, use_resources=use_resources, + pgo=pgo) ) yield (test, args_tuple) pending = tests_and_args() @@ -526,9 +527,6 @@ except StopIteration: output.put((None, None, None, None)) return - # required to permit running tests with PGO flag on/off - if pgo: - args_tuple[1]['pgo']=pgo # -E is needed by some tests, e.g. test_import popen = Popen(base_cmd + ['--slaveargs', json.dumps(args_tuple)], stdout=PIPE, stderr=PIPE,