diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-31 11:34:47 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-31 11:34:47 (GMT) |
commit | 64474542ebec7095d3f66828de4d917699388e9e (patch) | |
tree | 8f16d9748b489ef57a25d32df9c39beeba5adcae | |
parent | b643ef8f8e92728c2a4afaaa860592e384c7178c (diff) | |
download | cpython-64474542ebec7095d3f66828de4d917699388e9e.zip cpython-64474542ebec7095d3f66828de4d917699388e9e.tar.gz cpython-64474542ebec7095d3f66828de4d917699388e9e.tar.bz2 |
PY_CFLAGS doesn't exist under Windows
-rw-r--r-- | Lib/test/support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 132bc56..fb43f3d 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'): |