[Python-checkins] cpython (3.4): Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og
victor.stinner
python-checkins at python.org
Fri Mar 27 15:44:53 CET 2015
https://hg.python.org/cpython/rev/c663dbb84c8c
changeset: 95218:c663dbb84c8c
branch: 3.4
parent: 95216:e08108d5488e
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Mar 27 15:36:01 2015 +0100
summary:
Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og
-Og does not optimize the C code, it's just "fast debugging".
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
@@ -1438,7 +1438,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