diff --git a/tests/requirements.in b/tests/requirements.in index 425a283..8dc90bd 100644 --- a/tests/requirements.in +++ b/tests/requirements.in @@ -1,3 +1,3 @@ file:.#egg=rpds-py pytest -pytest-run-parallel \ No newline at end of file +pytest-run-parallel diff --git a/tests/test_hash_trie_map.py b/tests/test_hash_trie_map.py index 3544305..3dec414 100644 --- a/tests/test_hash_trie_map.py +++ b/tests/test_hash_trie_map.py @@ -39,9 +39,11 @@ # see https://github.com/python/cpython/issues/127065, # remove this when the CPython bug is fixed in a released version if bool(sysconfig.get_config_var("Py_GIL_DISABLED")): + def methodcaller(name, /, *args, **kwargs): def caller(obj): return getattr(obj, name)(*args, **kwargs) + return caller