-
Notifications
You must be signed in to change notification settings - Fork 10
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 imp module is deprecated in favour of importlib #44
Comments
From what I can tell it is used by the old test harness. It can run all tests inside one Python process or spawn a new Python processes for each test. Line 6 in 779d30f
According to the comment above the line you mentioned, imp.load_source is only used to ensue that sys.path is modified:Line 204 in 779d30f
I am not really sure myself if this is still needed or was only required in older Python versions. At least the comment was added in 2006: 4cf1b20 |
…oject#44 This module was removed in Python 3.12. The replacement function was added in Python 3.4, see https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_file_location.
…oject#44 The "imp" module was removed in Python 3.12. The replacement function was added in Python 3.4, see https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_file_location.
…oject#44 The "imp" module was removed in Python 3.12. The replacement function were added in Python 3.5, see https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_file_location https://docs.python.org/3/library/importlib.html#importlib.util.module_from_spec
…oject#44 The "imp" module was removed in Python 3.12. The replacement functions were added in Python 3.5, see https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_file_location https://docs.python.org/3/library/importlib.html#importlib.util.module_from_spec
…oject#44 The "imp" module was removed in Python 3.12. The replacement functions were added in Python 3.5, see https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_file_location https://docs.python.org/3/library/importlib.html#importlib.util.module_from_spec
…oject#44 The "imp" module was removed in Python 3.12. The replacement functions were added in Python 3.5, see https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_file_location https://docs.python.org/3/library/importlib.html#importlib.util.module_from_spec
Fixed by #53 |
HI,
running tests, I noticed this warning:
I didn't file a PR as I'm not exactly sure what
cfv/test/cfvtest.py
Line 205 in 08ee267
The text was updated successfully, but these errors were encountered: