Fix tox.ini to use allowlist_externals instead of the obsolete whitelist_externals
Run tox
Expected result
Tests pass
Actual behavior
Python 3.11
FAILED tests/test_engine.py::test_schedule_at - spinach.exc.InvalidJobSignatureError: Arguments of job not compatible with task bar_task: got an unexpected keyword...
FAILED tests/test_engine.py::test_schedule_batch - spinach.exc.InvalidJobSignatureError: Arguments of job not compatible with task bar_task: got an unexpected keyword...
Python 3.12
FAILED tests/test_brokers.py::test_wait_for_events_no_future_job[MemoryBroker] - AttributeError: 'called_once' is not a valid assertion. Use a spec for the mock if 'called_once' is meant to be an attribute.
FAILED tests/test_brokers.py::test_wait_for_events_no_future_job[RedisBroker] - AttributeError: 'called_once' is not a valid assertion. Use a spec for the mock if 'called_once' is meant to be an attribute.
FAILED tests/test_engine.py::test_schedule_at - spinach.exc.InvalidJobSignatureError: Arguments of job not compatible with task bar_task: got an unexpected keyword argument 'three'
FAILED tests/test_engine.py::test_schedule_batch - spinach.exc.InvalidJobSignatureError: Arguments of job not compatible with task bar_task: got an unexpected keyword argument 'three'
FAILED tests/test_utils.py::test_exponential_backoff - Failed: DID NOT RAISE <class 'ValueError'>
Miscellany
Tests DO pass when run against a Python 3.8 runtime
Steps to reproduce
tox.ini
to useallowlist_externals
instead of the obsoletewhitelist_externals
tox
Expected result
Tests pass
Actual behavior
Python 3.11
Python 3.12
Miscellany
Tests DO pass when run against a Python 3.8 runtime