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 emitted in test_importlib
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, serhiy.storchaka, vstinner
Priority: normal Keywords:

Created on 2017-04-25 09:58 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 1285 merged serhiy.storchaka, 2017-04-25 19:19
Messages (4)
msg292259 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-04-25 09:58
$ ./python -We -m test.regrtest -v test_importlib
...
======================================================================
ERROR: test_find_module (test.test_importlib.test_abc.Frozen_MetaPathFinderDefaultsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_abc.py", line 160, in test_find_module
    self.assertIsNone(self.ins.find_module('something', None))
  File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_abc.py", line 151, in find_module
    return super().find_module(fullname, path)
  File "/home/serhiy/py/cpython/Lib/importlib/abc.py", line 72, in find_module
    stacklevel=2)
DeprecationWarning: MetaPathFinder.find_module() is deprecated since Python 3.4 in favor of MetaPathFinder.find_spec()(available since 3.4)

...
msg292284 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-04-25 22:57
> DeprecationWarning: MetaPathFinder.find_module() is deprecated since Python 3.4 in favor of MetaPathFinder.find_spec()(available since 3.4)

Is a space missing in the error message between "MetaPathFinder.find_spec()" and "(available since 3.4)"?
msg292285 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-04-25 22:58
Deprecation introduced by issue #29576 according to the PR.
msg292560 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-04-29 04:06
New changeset 3cc8259b71ef784a9f7593f04da96043afe2228a by Serhiy Storchaka in branch 'master':
bpo-30158: Fix deprecation warnings in test_importlib introduced by bpo-29576. (#1285)
https://github.com/python/cpython/commit/3cc8259b71ef784a9f7593f04da96043afe2228a
History
Date User Action Args
2022-04-11 14:58:45adminsetgithub: 74344
2017-04-29 04:10:47serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-04-29 04:06:51serhiy.storchakasetmessages: + msg292560
2017-04-25 22:58:21vstinnersetmessages: + msg292285
2017-04-25 22:57:00vstinnersetnosy: + vstinner
messages: + msg292284
2017-04-25 19:30:38serhiy.storchakasetstage: patch review
versions: - Python 3.5, Python 3.6
2017-04-25 19:19:12serhiy.storchakasetpull_requests: + pull_request1392
2017-04-25 09:58:19serhiy.storchakacreate