...
+ /usr/bin/pytest -k 'not TLSTests'
============================= test session starts ==============================
platform linux -- Python 3.12.0b3, pytest-7.3.2, pluggy-1.0.0
rootdir: /builddir/build/BUILD/oscrypto-1.3.0
plugins: xdist-3.3.1
collected 0 items / 7 errors
==================================== ERRORS ====================================
__________________ ERROR collecting tests/test_asymmetric.py ___________________
ImportError while importing test module '/builddir/build/BUILD/oscrypto-1.3.0/tests/test_asymmetric.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:4: in <module>
import imp
E ModuleNotFoundError: No module named 'imp'
_____________________ ERROR collecting tests/test_init.py ______________________
ImportError while importing test module '/builddir/build/BUILD/oscrypto-1.3.0/tests/test_init.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:4: in <module>
import imp
E ModuleNotFoundError: No module named 'imp'
______________________ ERROR collecting tests/test_kdf.py ______________________
ImportError while importing test module '/builddir/build/BUILD/oscrypto-1.3.0/tests/test_kdf.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:4: in <module>
import imp
E ModuleNotFoundError: No module named 'imp'
_____________________ ERROR collecting tests/test_keys.py ______________________
ImportError while importing test module '/builddir/build/BUILD/oscrypto-1.3.0/tests/test_keys.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:4: in <module>
import imp
E ModuleNotFoundError: No module named 'imp'
___________________ ERROR collecting tests/test_symmetric.py ___________________
ImportError while importing test module '/builddir/build/BUILD/oscrypto-1.3.0/tests/test_symmetric.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:4: in <module>
import imp
E ModuleNotFoundError: No module named 'imp'
______________________ ERROR collecting tests/test_tls.py ______________________
ImportError while importing test module '/builddir/build/BUILD/oscrypto-1.3.0/tests/test_tls.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:4: in <module>
import imp
E ModuleNotFoundError: No module named 'imp'
__________________ ERROR collecting tests/test_trust_list.py ___________________
ImportError while importing test module '/builddir/build/BUILD/oscrypto-1.3.0/tests/test_trust_list.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:4: in <module>
import imp
E ModuleNotFoundError: No module named 'imp'
=========================== short test summary info ============================
ERROR tests/test_asymmetric.py
ERROR tests/test_init.py
ERROR tests/test_kdf.py
ERROR tests/test_keys.py
ERROR tests/test_symmetric.py
ERROR tests/test_tls.py
ERROR tests/test_trust_list.py
!!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 7 errors in 0.21s ===============================
The imp module was removed in python 3.12. Scroll down to:
Many previously deprecated cleanups in importlib have now been completed:
...
Support for find_loader() and find_module() APIs have been
removed. (Contributed by Barry Warsaw in gh-98040.)
Replace removed imp functions with importlib functions:
The
imp
module was removed in python 3.12. Scroll down to:...
Support for
find_loader()
andfind_module()
APIs have been removed. (Contributed by Barry Warsaw in gh-98040.)Replace removed
imp
functions with importlib functions:... imp.find_module() | importlib.util.find_spec() ... imp.load_module() | importlib.import_module()