diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-26 15:08:24 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-26 15:08:24 (GMT) |
commit | eaec3597ddf41facfb7b6ec4f23a372beae88764 (patch) | |
tree | ca4e3b6bbf1927b5865d2f53660c00726bc39cf3 /Lib/sysconfig.py | |
parent | 59463d8340731e228bad77893d840cf43e52b98e (diff) | |
download | cpython-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.py | 2 |
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) |