summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-27 14:36:15 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-27 14:36:15 (GMT)
commitba508d5dd2492aa2566385fd59f5b4f1bfe15a90 (patch)
tree10acb919a8ff192753facb011c1498fe11d45557 /Lib/test/support
parent6b3af083cab7bdd8772b2c2f12d282387de5e668 (diff)
parentd7aa5248fb577c7f46d4c0c9b064392bf5c17403 (diff)
downloadcpython-ba508d5dd2492aa2566385fd59f5b4f1bfe15a90.zip
cpython-ba508d5dd2492aa2566385fd59f5b4f1bfe15a90.tar.gz
cpython-ba508d5dd2492aa2566385fd59f5b4f1bfe15a90.tar.bz2
Merge 3.4 (test.support)
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 77e2d76..1919082 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1439,7 +1439,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'