Accepting request 1138740 from devel:languages:python

- Fix test.py to work with Python 3.12.

OBS-URL: https://build.opensuse.org/request/show/1138740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ana?expand=0&rev=8
This commit is contained in:
Ana Guerrero 2024-01-15 21:19:54 +00:00 committed by Git OBS Bridge
commit 36c104b1b9
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 15 02:44:13 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Fix test.py to work with Python 3.12.
-------------------------------------------------------------------
Wed Sep 6 03:05:47 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-ana
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -109,7 +109,7 @@ class TestAna(unittest.TestCase):
gc.collect()
ana.dl = ana.DirDataLayer(pickle_dir="/tmp/test_ana")
two = A.ana_load(uuid)
self.assertEquals(uuid, two.ana_uuid)
self.assertEqual(uuid, two.ana_uuid)
# reset the datalayer to make sure we handle it properly
ana.set_dl(ana.DictDataLayer())