17
0
Files
python-apache-libcloud/fix-tests-python313.patch
Daniel Garcia fccec6ec6e - Update to 3.9.0
* Common
    - Support for Python 3.9 which is EOL has been removed.
    - Indicate we also support Python 3.12 (non beta) and Python 3.13.
    - Support for Python 3.8 which is EOL has been removed.
    - Support for Python 3.7 which is EOL has been removed.
    - Types inheriting from ``libcloud.common.types.Type`` have been made hashable.
    - [NTT CIS] Fix invalid comparison in the ``XmlListConfig.__init__()`` method.
    - Update versions of build and packaging tools required to build the package.
  * Compute
    - [OpenStack] Add optional node port ID to attach the floating IP
      in OpenStack ex_attach_floating_ip_to_node function.
    - [OpenStack] Add metadata fields ``os_distro`` and ``os_version``
      provided by OpenStack Image API (if set) to the ``extra`` field
      of the OpenStack NodeImage.
    - [LINODE] Add support for cloud-init metadata support to
      create_node() Add new functions ``create_key_pair``,
      ``list_key_pairs``, and ``get_image``
    - [Azure ARM] Add a new argument to destroy_node() to also delete
      node's managed OS disk as part of the node's deletion.
    - [ECS] Add VPC IP and Elastic IP to ECS node as private and public IP.
    - [Azure ARM] When deleting a node, delete VM OS disk if it's a managed disk.
    - [Azure ARM] Add ``ex_resize_node()`` method.
    - [Equinix Metal] Fix ``list_nodes()`` method so it correctly
      handles NodeSize.ram attribute in case TB is returned.
    - [Equinix Metal] Deprecate facility API and replace it with metros location.
    - [Equinix Metal] Remove all the methods for managing volumes and
      volume snapshots. This functionality hasn't been supported on
      the server side for many years already.
    - [Amazon EC2] Update pricing and sizing data.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=139
2026-02-18 06:57:12 +00:00

41 lines
1.5 KiB
Diff

From c2bd6f4c096982d89a2e99114697b0ff1fa80176 Mon Sep 17 00:00:00 2001
From: Miguel Caballer <micafer1@upv.es>
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(-)
Index: apache_libcloud-3.9.0/libcloud/test/common/test_openstack_identity.py
===================================================================
--- apache_libcloud-3.9.0.orig/libcloud/test/common/test_openstack_identity.py
+++ apache_libcloud-3.9.0/libcloud/test/common/test_openstack_identity.py
@@ -235,7 +235,7 @@ class OpenStackIdentityConnectionTestCas
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 OpenStackIdentityConnectionTestCas
# 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 OpenStackIdentityConnectionTestCas
)
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):