From 7173340fab9dcec6b0bd817a647bfae81f47ed54 Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann <bwiedemann@suse.de> Date: Jan 17 2024 19:43:23 +0000 Subject: update --- diff --git a/.files b/.files index f5d7cbc..59c9ac6 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index fdb8c4f..150e009 100644 --- a/.rev +++ b/.rev @@ -61,4 +61,12 @@ - Add patch remove-future-requirement.patch, remove requirement of future</comment> <requestid>1109157</requestid> </revision> + <revision rev="8" vrev="5"> + <srcmd5>a9ab34451ecba11cb67851e397472543</srcmd5> + <version>0.06</version> + <time>1705353594</time> + <user>anag+factory</user> + <comment>- Fix test.py to work with Python 3.12.</comment> + <requestid>1138740</requestid> + </revision> </revisionlist> diff --git a/python-ana.changes b/python-ana.changes index db5c5c4..f9e0598 100644 --- a/python-ana.changes +++ b/python-ana.changes @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +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> - Stop patching files that we ship directly, therefore diff --git a/python-ana.spec b/python-ana.spec index 437bb66..57005a4 100644 --- a/python-ana.spec +++ b/python-ana.spec @@ -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 diff --git a/test.py b/test.py index 1250c34..fc9870e 100644 --- a/test.py +++ b/test.py @@ -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())