From 582265f48485b9c74a92c09a54b450366797d5bf Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 27 Mar 2015 15:44:13 +0100 Subject: Issue #23445: Fix test_gdb.python_is_optimized() for CFLAGS=-Og -Og does not optimize the C code, it's just "fast debugging". --- Lib/test/test_gdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index b7577de..9656010 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 ? -- cgit v0.12