[Python-checkins] cpython (merge 3.4 -> default): Merge 3.4 (test.support)

victor.stinner python-checkins at python.org
Fri Mar 27 15:44:54 CET 2015


https://hg.python.org/cpython/rev/77181e30d2c3
changeset:   95219:77181e30d2c3
parent:      95217:362c43c340a6
parent:      95218:c663dbb84c8c
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Mar 27 15:36:15 2015 +0100
summary:
  Merge 3.4 (test.support)

files:
  Lib/test/support/__init__.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1439,7 +1439,7 @@
     for opt in cflags.split():
         if opt.startswith('-O'):
             final_opt = opt
-    return final_opt != '' and final_opt != '-O0'
+    return final_opt not in ('', '-O0', '-Og')
 
 
 _header = 'nP'

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


More information about the Python-checkins mailing list