You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/experiment/test_procedure.py::test_procedure_wrapper
tests/experiment/test_results.py::test_procedure_wrapper
<frozen importlib._bootstrap>:283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead
load_module() is used in experiment in ProcedureWrapper.__setstate__ and results.__setstate__. This seems to be the way to replace this. However, possibly the replacement could not be that straightforward, so care needs to be taken to confirm everything still works as expected, maybe with some added tests.
Luckily, we have until Python 3.12, so there is some time :D
The text was updated successfully, but these errors were encountered:
Tests on Python 3.10 show a deprecation warning
load_module()
is used inexperiment
inProcedureWrapper.__setstate__
andresults.__setstate__
.This seems to be the way to replace this. However, possibly the replacement could not be that straightforward, so care needs to be taken to confirm everything still works as expected, maybe with some added tests.
Luckily, we have until Python 3.12, so there is some time :D
The text was updated successfully, but these errors were encountered: