Skip to content

Commit

Permalink
Update python-aenum to version 3.1.15 / rev 12 via SR 1144506
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1144506
by user dgarcia + anag+factory
- Add fix-python312-tests.patch to skip failing tests with python 3.12
  gh#ethanfurman/aenum#36
  • Loading branch information
dgarcia authored and bmwiedemann committed Feb 6, 2024
1 parent 89ef486 commit 61ee079
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 1 deletion.
Binary file modified packages/p/python-aenum/.files
Binary file not shown.
9 changes: 9 additions & 0 deletions packages/p/python-aenum/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,13 @@ https://build.opensuse.org/request/show/612101</comment>
<comment>Automatic submission by obs-autosubmit</comment>
<requestid>1134618</requestid>
</revision>
<revision rev="12" vrev="2">
<srcmd5>83731b7acdd35b2d02a706d79fc41646</srcmd5>
<version>3.1.15</version>
<time>1707233723</time>
<user>anag+factory</user>
<comment>- Add fix-python312-tests.patch to skip failing tests with python 3.12
gh#ethanfurman/aenum#36</comment>
<requestid>1144506</requestid>
</revision>
</revisionlist>
34 changes: 34 additions & 0 deletions packages/p/python-aenum/fix-python312-tests.patch
Original file line number Diff line number Diff line change
@@ -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))
6 changes: 6 additions & 0 deletions packages/p/python-aenum/python-aenum.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 6 08:42:07 UTC 2024 - Daniel Garcia <[email protected]>

- 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 <[email protected]>

Expand Down
4 changes: 3 additions & 1 deletion packages/p/python-aenum/python-aenum.spec
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -30,6 +30,8 @@ Patch0: tempdir_missing.patch
# PATCH-FIX-UPSTREAM skip_failing_testcases.patch gh#ethanfurman/aenum#12 [email protected]
# 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
Expand Down

0 comments on commit 61ee079

Please sign in to comment.