You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StrictLock and CompositeLock can be used as context managers in 2 ways.
They are context manager classes (__enter__ and __exit__ methods) but
the __call__ method is a generator context manager too - allowing
arguments.
This code now tests both forms.
0 commit comments