diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-27 14:36:01 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-27 14:36:01 (GMT) |
commit | d7aa5248fb577c7f46d4c0c9b064392bf5c17403 (patch) | |
tree | a69c3424a7b4f31e5eb5944ddf656fc0bb7b3b43 /Lib/test/support | |
parent | 79fd962652a60f04ecc7becb116c330063b1706e (diff) | |
download | cpython-d7aa5248fb577c7f46d4c0c9b064392bf5c17403.zip cpython-d7aa5248fb577c7f46d4c0c9b064392bf5c17403.tar.gz cpython-d7aa5248fb577c7f46d4c0c9b064392bf5c17403.tar.bz2 |
Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og
-Og does not optimize the C code, it's just "fast debugging".
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | 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 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' |