Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12 #227

Closed
sbraz opened this issue Jun 16, 2024 · 2 comments

Comments

@sbraz
Copy link
Contributor

sbraz commented Jun 16, 2024

gaupol/test/test_extensionman.py::TestExtensionManager::test___init__
gaupol/test/test_extensionman.py::TestExtensionManager::test_setup_extension
gaupol/test/test_extensionman.py::TestExtensionManager::test_teardown_extension
  <frozen importlib._bootstrap>:530: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead

This one seems to stem from

module_object = loader.load_module(name)

@otsaloma
Copy link
Owner

python3.12 -m pytest . passes fully for me, so maybe not a problem in 3.12 yet?

Should be fixed of course.

@sbraz
Copy link
Contributor Author

sbraz commented Jun 16, 2024

It does for me too with 3.13, I have no idea why it says that. The documentation, even that for 3.14 doesn't mention when it will be removed: https://docs.python.org/3.14/library/importlib.html#importlib.abc.Loader.load_module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants