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 martin.panter
Recipients brett.cannon, martin.panter
Date 2015-10-27.00:38:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445906327.87.0.677600064141.issue25487@psf.upfronthosting.co.za>
In-reply-to
Content
I typically run the test suite with the “python -bWall” options enabled, and there is a new warning. I suspect it is a result of the DeprecationWarning upgrade in revision 5877c191b76e. When -Werror is enabled it causes test failure.

The fix is probably pretty easy; there are probably other deprecated modules tested in the test suite to copy from. I think there is a test.support function that can suppress deprecation warnings while importing a particular module.

$ make -s -j2 && LC_TIME= ./python -bWall -m test.regrtest -j0
. . .
[167/399] test_imp
/media/disk/home/proj/python/cpython/Lib/test/test_imp.py:16: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
. . .
[207/399] test_modulefinder -- running: test_lzma (39 sec)
/media/disk/home/proj/python/cpython/Lib/modulefinder.py:14: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
. . .
[335/399] test_threaded_import -- running: test_tarfile (36 sec), test_subprocess (62 sec)
/media/disk/home/proj/python/cpython/Lib/modulefinder.py:14: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
History
Date User Action Args
2015-10-27 00:38:48martin.pantersetrecipients: + martin.panter, brett.cannon
2015-10-27 00:38:47martin.pantersetmessageid: <1445906327.87.0.677600064141.issue25487@psf.upfronthosting.co.za>
2015-10-27 00:38:47martin.panterlinkissue25487 messages
2015-10-27 00:38:47martin.pantercreate