summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-26 15:08:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-26 15:08:24 (GMT)
commiteaec3597ddf41facfb7b6ec4f23a372beae88764 (patch)
treeca4e3b6bbf1927b5865d2f53660c00726bc39cf3 /Lib/sysconfig.py
parent59463d8340731e228bad77893d840cf43e52b98e (diff)
downloadcpython-eaec3597ddf41facfb7b6ec4f23a372beae88764.zip
cpython-eaec3597ddf41facfb7b6ec4f23a372beae88764.tar.gz
cpython-eaec3597ddf41facfb7b6ec4f23a372beae88764.tar.bz2
Issue #19760: Silence sysconfig's 'SO' key deprecation warnings in tests.
Change stacklevel in warnings.warn() for 'SO' key to 2.
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index ffa772e..dbf7767 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -585,7 +585,7 @@ def get_config_var(name):
"""
if name == 'SO':
import warnings
- warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning)
+ warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning, 2)
return get_config_vars().get(name)