New submission from Serhiy Storchaka: 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. ---------- components: Library (Lib), Tests files: test_sysconfig_warnings.patch keywords: patch messages: 204273 nosy: barry, serhiy.storchaka, tarek priority: normal severity: normal stage: patch review status: open title: Deprecation warnings in ttest_sysconfig and test_distutils type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file32825/test_sysconfig_warnings.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19760> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com