From: Victor Stinner Date: Fri, 27 Mar 2015 14:44:13 +0000 (+0100) Subject: Issue #23445: Fix test_gdb.python_is_optimized() for CFLAGS=-Og X-Git-Tag: v2.7.10rc1~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=582265f48485b9c74a92c09a54b450366797d5bf;p=thirdparty%2FPython%2Fcpython.git Issue #23445: Fix test_gdb.python_is_optimized() for CFLAGS=-Og -Og does not optimize the C code, it's just "fast debugging". --- diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index b7577de0e5d2..965601058a06 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -72,7 +72,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') def gdb_has_frame_select(): # Does this build of gdb have gdb.Frame.select ?