[New-bugs-announce] [issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

STINNER Victor report at bugs.python.org
Fri Apr 16 09:12:55 EDT 2021


New submission from STINNER Victor <vstinner at python.org>:

On Windows, test_importlib logs "DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated (...)". Example:

vstinner at DESKTOP-DK7VBIL C:\vstinner\python\master>python -m test -v test_importlib 
(...)
test_find_module_missing (test.test_importlib.test_windows.Frozen_WindowsRegistryFinderTests) ... <frozen importlib._bootstrap_external>:848: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for 
removal in Python 3.12; use find_spec() instead
ok

(...)

test_find_module_missing (test.test_importlib.test_windows.Source_WindowsRegistryFinderTests) ... C:\vstinner\python\master\lib\importlib\_bootstrap_external.py:848: DeprecationWarning: WindowsRegistryFinder.find_module() is de
precated and slated for removal in Python 3.12; use find_spec() instead
  _warnings.warn("WindowsRegistryFinder.find_module() is deprecated and "
ok

(...)

----------
components: Tests, Windows
messages: 391192
nosy: brett.cannon, paul.moore, steve.dower, tim.golden, vstinner, xtreak, zach.ware
priority: normal
severity: normal
status: open
title: [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43864>
_______________________________________


More information about the New-bugs-announce mailing list