[Python-checkins] cpython (2.7): Issue #25188: Clean up code to pass the --pgo flag to subprocesses

brett.cannon python-checkins at python.org
Fri Oct 16 15:30:26 EDT 2015


https://hg.python.org/cpython/rev/cc42700abb8e
changeset:   98771:cc42700abb8e
branch:      2.7
parent:      98735:6bce28fec911
user:        Brett Cannon <brett at python.org>
date:        Fri Oct 16 12:30:20 2015 -0700
summary:
  Issue #25188: Clean up code to pass the --pgo flag to subprocesses
when running the test suite.

Patch by Arfrever Frehtes Taifersar Arahesis.

files:
  Lib/test/regrtest.py |  6 ++----
  1 files changed, 2 insertions(+), 4 deletions(-)


diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -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,

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list