diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-03-07 13:39:40 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-03-07 13:48:37 +0300 |
commit | a5bc35bb658487b44e707d555998bbec6cb14eab (patch) | |
tree | 4df3ffcdd48c13abc65053c681eeb9ad05901f2b /contrib/python/google-auth/py3/tests | |
parent | e49f2e6094ceb19570c44590cd0e5909a104b81d (diff) | |
download | ydb-a5bc35bb658487b44e707d555998bbec6cb14eab.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/google-auth/py3/tests')
-rw-r--r-- | contrib/python/google-auth/py3/tests/test__refresh_worker.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/python/google-auth/py3/tests/test__refresh_worker.py b/contrib/python/google-auth/py3/tests/test__refresh_worker.py index f842b02cac4..c25965d10b9 100644 --- a/contrib/python/google-auth/py3/tests/test__refresh_worker.py +++ b/contrib/python/google-auth/py3/tests/test__refresh_worker.py @@ -150,7 +150,10 @@ def test_refresh_dead_worker(): def test_pickle(): w = _refresh_worker.RefreshThreadManager() + # For some reason isinstance cannot interpret threading.Lock as a type. + assert w._lock is not None pickled_manager = pickle.dumps(w) manager = pickle.loads(pickled_manager) assert isinstance(manager, _refresh_worker.RefreshThreadManager) + assert manager._lock is not None |