File: fix-error-in-py313.patch

package info (click to toggle)
libcloud 3.8.0%2Brepack-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,760 kB
  • sloc: python: 158,354; xml: 19,482; sh: 27; makefile: 11
file content (43 lines) | stat: -rw-r--r-- 1,554 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 46b2d1baef742b57d05c2e71edbec34e1c8eab67 Mon Sep 17 00:00:00 2001
From: Miguel Caballer <micafer1@upv.es>
Date: Tue, 17 Feb 2026 08:55:42 +0100
Subject: 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 8f6b55066..139ccbed6 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):
-- 
2.47.3