[New-bugs-announce] [issue30158] Deprecation warnings emitted in test_importlib
Serhiy Storchaka
report at bugs.python.org
Tue Apr 25 05:58:19 EDT 2017
New submission from Serhiy Storchaka:
$ ./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)
...
----------
components: Tests
messages: 292259
nosy: brett.cannon, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Deprecation warnings emitted in test_importlib
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30158>
_______________________________________
More information about the New-bugs-announce
mailing list