From c2bd6f4c096982d89a2e99114697b0ff1fa80176 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 17 Feb 2026 08:55:42 +0100 Subject: [PATCH] Fix error in py313 --- libcloud/test/common/test_openstack_identity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcloud/test/common/test_openstack_identity.py b/libcloud/test/common/test_openstack_identity.py index 480112d0ea..9e74970c96 100644 --- a/libcloud/test/common/test_openstack_identity.py +++ b/libcloud/test/common/test_openstack_identity.py @@ -235,7 +235,7 @@ def test_token_expiration_and_force_reauthentication(self): osa.auth_token = None osa.auth_token_expires = YESTERDAY - mocked_auth_method.call_count = 0 + mocked_auth_method.reset_mock() self.assertEqual(mocked_auth_method.call_count, 0) for i in range(0, count): @@ -246,7 +246,7 @@ def test_token_expiration_and_force_reauthentication(self): # No force reauth, valid / non-expired token osa.auth_token = None - mocked_auth_method.call_count = 0 + mocked_auth_method.reset_mock() self.assertEqual(mocked_auth_method.call_count, 0) for i in range(0, count): @@ -264,7 +264,7 @@ def test_token_expiration_and_force_reauthentication(self): ) osa.auth_token = None - mocked_auth_method.call_count = 0 + mocked_auth_method.reset_mock() self.assertEqual(mocked_auth_method.call_count, 0) for i in range(0, count):