From 08b5cc38d09d388a5a7c11942b7992870ee012b7 Mon Sep 17 00:00:00 2001 From: Carl Lundin <108372512+clundin25@users.noreply.github.com> Date: Wed, 21 Feb 2024 08:40:26 -0800 Subject: [PATCH] fix: Typo when setting the state for the pickle deserializer. (#1479) * fix: Typo when setting the state for the pickle deserializer. --- google/auth/_refresh_worker.py | 2 +- system_tests/secrets.tar.enc | Bin 10324 -> 10323 bytes tests/test__refresh_worker.py | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/google/auth/_refresh_worker.py b/google/auth/_refresh_worker.py index 9bb0ccc2c..674032d84 100644 --- a/google/auth/_refresh_worker.py +++ b/google/auth/_refresh_worker.py @@ -75,7 +75,7 @@ def __getstate__(self): def __setstate__(self, state): """Pickle helper that deserializes the _lock attribute.""" - state["_key"] = threading.Lock() + state["_lock"] = threading.Lock() self.__dict__.update(state) diff --git a/system_tests/secrets.tar.enc b/system_tests/secrets.tar.enc index 506ef1415a8cf6abaa9ba998175cbb69f240dacc..79c9bb6b63ad562170bfc49b004a41ae57669d47 100644 GIT binary patch literal 10323 zcmV-ZD6H2CB>?tKRTI{0o(n}91HMnf$^@`F(UUEjgYsyAeib|sK8^>rT^kaqPyi>K zmTxF}8nBv%WX_zK>E%_l6%8%1%5`cb>H zzv}jNQc^~Uf=Meh>c7|R(;&Ih3BndjZG7^&&F3Ot3-UV*_Of8KM1_rETXja-9WevT zUr(IXCf_ebksb-tG?hYuPx>ZtUPXjgxSWxs8>E+hGa_Y$$*S@_6uQ2YXC}XN^+lP4 zR>$F~HymZ6keft!@(ONcooE~Xy<>wO?LJz_2y?FSY1_A)^LiqdM4R;YB$fkra%T}+ zpTfOohX@TGuM`|qI)Bc&h*Pv6)}5W8omE@C`j}hEBeKD(v8mIR;iFv6f411Q z5AJAkgCqb_M{i65fiTOgGFOEBatHaB%6V}s7ylg_SfxgmCA#m>Lhsx7i#dC6NeRI%6|{#Fh&?<^Bt#oQ=Hhk zH+Tt-W(zj`u^&NOZm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T>tG(58=R^1yJiRAr`U)59dx?N>X~uxElNLsG z3>G*OY_`d&sLGxpYcXli?vd9N|D}2Fd7r`#*-=#O-yK~BmEs@lWb>-{s%Wctzsz{}`_EmPGHXT7fBX6)_%uaVL^?uK$zhJ{`UIaa7%+gCWg0C3fDHHQemNy{MBRyYi*2 zNOr3z=_U+hHG52N69+Tgd`$^08w@yc&cZ&i>h|pfly630h_B45;PV!sq`x1N0;-Uu zDzPjOn(NGUB3M2EIBVlbJ>S|R)0C3^vT|0Matlb^1r@&31MMW!A|mL@{u=>Y;fHHR mLi@<_e|V@ZL0AW+{GDr|#tj+M1AHC32T1q}K*rtjpv^Koz!U}m diff --git a/tests/test__refresh_worker.py b/tests/test__refresh_worker.py index f842b02ca..c25965d10 100644 --- a/tests/test__refresh_worker.py +++ b/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