From 7187021ecc9f65601c50754d0fc6ec6c5264eea1 Mon Sep 17 00:00:00 2001 From: Asif Saif Uddin Date: Wed, 18 Oct 2023 16:14:16 +0600 Subject: [PATCH] using assert_called_once() in est__pop_ready_uses_lock (#1813) --- t/unit/asynchronous/test_hub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/unit/asynchronous/test_hub.py b/t/unit/asynchronous/test_hub.py index e46d338d..97551dd1 100644 --- a/t/unit/asynchronous/test_hub.py +++ b/t/unit/asynchronous/test_hub.py @@ -568,4 +568,4 @@ class test_Hub: def test__pop_ready_uses_lock(self): with patch.object(self.hub, '_ready_lock', autospec=True) as lock: self.hub._pop_ready() - assert lock.__enter__.called_once() + lock.__enter__.assert_called_once()