(original) (raw)

changeset: 95218:c663dbb84c8c branch: 3.4 parent: 95216:e08108d5488e user: Victor Stinner victor.stinner@gmail.com date: Fri Mar 27 15:36:01 2015 +0100 files: Lib/test/support/__init__.py description: Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og -Og does not optimize the C code, it's just "fast debugging". diff -r e08108d5488e -r c663dbb84c8c Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py Fri Mar 27 15:20:08 2015 +0100 +++ b/Lib/test/support/__init__.py Fri Mar 27 15:36:01 2015 +0100 @@ -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' /victor.stinner@gmail.com