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 61c7497 commit c750097Copy full SHA for c750097
tests/test_auth.py
@@ -251,10 +251,9 @@ async def test_jwks_cache_thread_safety(self):
251
252
# This test verifies that the lock is a proper threading.Lock object
253
# and can be used in a context manager
254
- import threading
255
256
# Verify it's a proper Lock object that supports context manager protocol
257
- assert hasattr(cache._lock, '__enter__') and hasattr(cache._lock, '__exit__')
+ 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