Message204273
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. |
|
Date |
User |
Action |
Args |
2013-11-24 22:13:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, tarek |
2013-11-24 22:13:38 | serhiy.storchaka | set | messageid: <1385331218.39.0.240436697883.issue19760@psf.upfronthosting.co.za> |
2013-11-24 22:13:38 | serhiy.storchaka | link | issue19760 messages |
2013-11-24 22:13:38 | serhiy.storchaka | create | |
|