From d7aa5248fb577c7f46d4c0c9b064392bf5c17403 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 27 Mar 2015 15:36:01 +0100 Subject: Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og -Og does not optimize the C code, it's just "fast debugging". --- Lib/test/support/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 94a5858..10c48b4 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1438,7 +1438,7 @@ def python_is_optimized(): 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' -- cgit v0.12