From 64474542ebec7095d3f66828de4d917699388e9e Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 31 Oct 2010 11:34:47 +0000 Subject: [PATCH] PY_CFLAGS doesn't exist under Windows --- Lib/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/support.py b/Lib/test/support.py index 132bc562f6e..fb43f3dbc5e 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -890,7 +890,7 @@ def gc_collect(): def python_is_optimized(): """Find if Python was built with optimizations.""" - cflags = sysconfig.get_config_vars()['PY_CFLAGS'] + cflags = sysconfig.get_config_var('PY_CFLAGS') or '' final_opt = "" for opt in cflags.split(): if opt.startswith('-O'):