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.

Author serhiy.storchaka
Recipients barry, serhiy.storchaka, tarek
Date 2013-11-24.22:13:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385331218.39.0.240436697883.issue19760@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-11-24 22:13:38serhiy.storchakasetrecipients: + serhiy.storchaka, barry, tarek
2013-11-24 22:13:38serhiy.storchakasetmessageid: <1385331218.39.0.240436697883.issue19760@psf.upfronthosting.co.za>
2013-11-24 22:13:38serhiy.storchakalinkissue19760 messages
2013-11-24 22:13:38serhiy.storchakacreate