Skip to content

Commit c2bd6f4

Browse files
committed
Fix error in py313
1 parent e5f6549 commit c2bd6f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libcloud/test/common/test_openstack_identity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_token_expiration_and_force_reauthentication(self):
235235
osa.auth_token = None
236236
osa.auth_token_expires = YESTERDAY
237237

238-
mocked_auth_method.call_count = 0
238+
mocked_auth_method.reset_mock()
239239
self.assertEqual(mocked_auth_method.call_count, 0)
240240

241241
for i in range(0, count):
@@ -246,7 +246,7 @@ def test_token_expiration_and_force_reauthentication(self):
246246
# No force reauth, valid / non-expired token
247247
osa.auth_token = None
248248

249-
mocked_auth_method.call_count = 0
249+
mocked_auth_method.reset_mock()
250250
self.assertEqual(mocked_auth_method.call_count, 0)
251251

252252
for i in range(0, count):
@@ -264,7 +264,7 @@ def test_token_expiration_and_force_reauthentication(self):
264264
)
265265
osa.auth_token = None
266266

267-
mocked_auth_method.call_count = 0
267+
mocked_auth_method.reset_mock()
268268
self.assertEqual(mocked_auth_method.call_count, 0)
269269

270270
for i in range(0, count):

0 commit comments

Comments
 (0)