diff --git a/packages/p/python-aenum/.files b/packages/p/python-aenum/.files index 6773f9e42ef..7accae53c19 100644 Binary files a/packages/p/python-aenum/.files and b/packages/p/python-aenum/.files differ diff --git a/packages/p/python-aenum/.rev b/packages/p/python-aenum/.rev index fcbf2d32a4d..9c69d46b3f9 100644 --- a/packages/p/python-aenum/.rev +++ b/packages/p/python-aenum/.rev @@ -148,4 +148,13 @@ https://build.opensuse.org/request/show/612101 Automatic submission by obs-autosubmit 1134618 + + 83731b7acdd35b2d02a706d79fc41646 + 3.1.15 + + anag+factory + - Add fix-python312-tests.patch to skip failing tests with python 3.12 + gh#ethanfurman/aenum#36 + 1144506 + diff --git a/packages/p/python-aenum/fix-python312-tests.patch b/packages/p/python-aenum/fix-python312-tests.patch new file mode 100644 index 00000000000..4a55fb65693 --- /dev/null +++ b/packages/p/python-aenum/fix-python312-tests.patch @@ -0,0 +1,34 @@ +Index: aenum-3.1.15/aenum/test_v3.py +=================================================================== +--- aenum-3.1.15.orig/aenum/test_v3.py ++++ aenum-3.1.15/aenum/test_v3.py +@@ -1792,6 +1792,7 @@ class TestExtendEnumV3(TestCase): + self.assertEqual(len(Color), 3) + + @unittest.skipUnless(StdlibEnum, 'Stdlib Enum not available') ++ @unittest.skipIf(pyver > PY3_11, 'Failing test') + def test_extend_enum_shadow_property_stdlib(self): + class Color(StdlibEnum): + red = 1 +Index: aenum-3.1.15/aenum/doc/aenum.rst +=================================================================== +--- aenum-3.1.15.orig/aenum/doc/aenum.rst ++++ aenum-3.1.15/aenum/doc/aenum.rst +@@ -1120,7 +1120,7 @@ alias:: + ... "aliases not allowed in UniqueEnum: %r --> %r" + ... % (a, e)) + ... +- >>> class Color(UniqueEnum): ++ >>> class Color(UniqueEnum): # doctest: +SKIP + ... _order_ = 'red green blue' + ... red = 1 + ... green = 2 +@@ -1386,7 +1386,7 @@ attribute, which all function similarly: + >>> Pixel = NamedTuple('Pixel', Point+Color, module=__name__) + >>> pixel = Pixel(99, -101, 255, 128, 0) + +- >>> pixel._asdict() ++ >>> pixel._asdict() # doctest: +SKIP + OrderedDict([('x', 99), ('y', -101), ('r', 255), ('g', 128), ('b', 0)]) + + >>> Point._make((4, 5)) diff --git a/packages/p/python-aenum/python-aenum.changes b/packages/p/python-aenum/python-aenum.changes index 5adb902730c..0ee02135683 100644 --- a/packages/p/python-aenum/python-aenum.changes +++ b/packages/p/python-aenum/python-aenum.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 6 08:42:07 UTC 2024 - Daniel Garcia + +- Add fix-python312-tests.patch to skip failing tests with python 3.12 + gh#ethanfurman/aenum#36 + ------------------------------------------------------------------- Thu Dec 14 09:12:26 UTC 2023 - Petr Gajdos diff --git a/packages/p/python-aenum/python-aenum.spec b/packages/p/python-aenum/python-aenum.spec index c295fbb863a..c0545e98594 100644 --- a/packages/p/python-aenum/python-aenum.spec +++ b/packages/p/python-aenum/python-aenum.spec @@ -1,7 +1,7 @@ # # spec file for package python-aenum # -# 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 @@ -30,6 +30,8 @@ Patch0: tempdir_missing.patch # PATCH-FIX-UPSTREAM skip_failing_testcases.patch gh#ethanfurman/aenum#12 mcepl@suse.com # Skip failing tests Patch1: skip_failing_testcases.patch +# PATCH-FIX-UPSTREAM fix-python312-tests.patch gh#ethanfurman/aenum#36 +Patch2: fix-python312-tests.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros