This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Deprecation warnings in ttest_sysconfig and test_distutils
Type: behavior Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: barry, python-dev, serhiy.storchaka, tarek
Priority: normal Keywords: patch

Created on 2013-11-24 22:13 by serhiy.storchaka, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_sysconfig_warnings.patch serhiy.storchaka, 2013-11-24 22:13 review
Messages (3)
msg204273 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-11-24 22:13
Following warnings are emitted when ttest_sysconfig and test_distutils ran with -Wall:

$ ./python -Wall -m test.regrtest test_sysconfig test_distutils
[1/2] test_sysconfig
/home/serhiy/py/cpython/Lib/sysconfig.py:588: DeprecationWarning: SO is deprecated, use EXT_SUFFIX
  warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning)
[2/2] test_distutils
/home/serhiy/py/cpython/Lib/distutils/sysconfig.py:578: DeprecationWarning: SO is deprecated, use EXT_SUFFIX
  warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning)
unknown, 0: Warning: using regular magic file `/etc/magic'
unknown, 0: Warning: using regular magic file `/etc/magic'
All 2 tests OK.

The proposed patch silences deprecation warnings. It also changes warning stacklevel for the 'SO' key in sysconfig to 2 so a warning now reports about place where stdlib function is called instead a place in the stdlib.
msg204277 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2013-11-24 22:38
LGTM.  Now that 3.4b1 is spun, I say go for it.
msg204483 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-11-26 15:08
New changeset 25f856d500e3 by Serhiy Storchaka in branch 'default':
Issue #19760: Silence sysconfig's 'SO' key deprecation warnings in tests.
http://hg.python.org/cpython/rev/25f856d500e3
History
Date User Action Args
2022-04-11 14:57:54adminsetgithub: 63959
2013-11-26 15:10:07serhiy.storchakasetstatus: open -> closed
assignee: serhiy.storchaka
resolution: fixed
stage: patch review -> resolved
2013-11-26 15:08:51python-devsetnosy: + python-dev
messages: + msg204483
2013-11-24 22:38:13barrysetmessages: + msg204277
2013-11-24 22:19:51serhiy.storchakalinkissue19758 dependencies
2013-11-24 22:13:38serhiy.storchakacreate