This is an automated email from the ASF dual-hosted git repository.

micafer pushed a commit to branch fix_py313_test
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit c2bd6f4c096982d89a2e99114697b0ff1fa80176
Author: Miguel Caballer <[email protected]>
AuthorDate: Tue Feb 17 08:55:42 2026 +0100

    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 480112d0e..9e74970c9 100644
--- a/libcloud/test/common/test_openstack_identity.py
+++ b/libcloud/test/common/test_openstack_identity.py
@@ -235,7 +235,7 @@ class 
OpenStackIdentityConnectionTestCase(unittest.TestCase):
         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 @@ class 
OpenStackIdentityConnectionTestCase(unittest.TestCase):
         # 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 @@ class 
OpenStackIdentityConnectionTestCase(unittest.TestCase):
         )
         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):

Reply via email to