We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a02f88 commit 61c7497Copy full SHA for 61c7497
tests/test_auth.py
@@ -253,7 +253,8 @@ async def test_jwks_cache_thread_safety(self):
253
# and can be used in a context manager
254
import threading
255
256
- assert isinstance(cache._lock, threading.Lock)
+ # Verify it's a proper Lock object that supports context manager protocol
257
+ assert hasattr(cache._lock, '__enter__') and hasattr(cache._lock, '__exit__')
258
259
# Test that we can acquire and release the lock
260
with cache._lock:
0 commit comments