diff --git a/Lib/test/test_importlib/test_locks.py b/Lib/test/test_importlib/test_locks.py index c97de934287..dc97ba15671 100644 --- a/Lib/test/test_importlib/test_locks.py +++ b/Lib/test/test_importlib/test_locks.py @@ -18,7 +18,7 @@ else: from test import lock_tests if threading is not None: - class ModuleLockAsRLockTests(lock_tests.RLockTests): + class ModuleLockAsRLockTests: locktype = classmethod(lambda cls: cls.LockType("some_lock")) # _is_owned() unsupported