Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-munch for openSUSE:Factory 
checked in at 2024-08-01 22:03:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-munch (Old)
 and      /work/SRC/openSUSE:Factory/.python-munch.new.7232 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-munch"

Thu Aug  1 22:03:17 2024 rev:7 rq:1190528 version:4.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-munch/python-munch.changes        
2023-12-17 21:29:20.075068373 +0100
+++ /work/SRC/openSUSE:Factory/.python-munch.new.7232/python-munch.changes      
2024-08-01 22:03:26.458020518 +0200
@@ -1,0 +2,6 @@
+Tue Jul 30 11:14:38 UTC 2024 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- Cherry-pick upstream patch to adjust tests for Python 3.13
+  * adjust-tests-for-python3.13.patch
+
+-------------------------------------------------------------------

New:
----
  adjust-tests-for-python3.13.patch

BETA DEBUG BEGIN:
  New:- Cherry-pick upstream patch to adjust tests for Python 3.13
  * adjust-tests-for-python3.13.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-munch.spec ++++++
--- /var/tmp/diff_new_pack.dFPsUY/_old  2024-08-01 22:03:27.130048238 +0200
+++ /var/tmp/diff_new_pack.dFPsUY/_new  2024-08-01 22:03:27.130048238 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-munch
 #
-# 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
@@ -25,6 +25,8 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/Infinidat/munch
 Source:         
https://files.pythonhosted.org/packages/source/m/munch/munch-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM - gh/Infinidat/munch#104 - Adjust tests for Python 3.13
+Patch:          
https://patch-diff.githubusercontent.com/raw/Infinidat/munch/pull/104.patch#/adjust-tests-for-python3.13.patch
 BuildRequires:  %{python_module pbr}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes

++++++ adjust-tests-for-python3.13.patch ++++++
>From 84651ee872f9ea6dbaed986fd3818202933a8b50 Mon Sep 17 00:00:00 2001
From: Karolina Surma <ksu...@redhat.com>
Date: Wed, 5 Jun 2024 09:49:49 +0200
Subject: [PATCH] Adjust tests for Python 3.13

---
 tests/test_munch.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/test_munch.py b/tests/test_munch.py
index c80b757..5886fdd 100644
--- a/tests/test_munch.py
+++ b/tests/test_munch.py
@@ -225,6 +225,15 @@ def test_reserved_attributes(attrname):
         assert attr == 'munch'
     elif attrname == '__dict__':
         assert attr == {}
+    elif attrname == '__static_attributes__':
+        # Python 3.13: added __static_attributes__ attribute, populated by the
+        # compiler, containing a tuple of names of attributes of this class
+        # which are accessed through self.X from any function in its body.
+        assert isinstance(attr, tuple)
+    elif attrname == '__firstlineno__':
+        # Python 3.13: added __firstlineno__ attribute, populated by the
+        # compiler, containing the line number of the first line of the class 
definition
+        assert isinstance(attr, int)
     else:
         assert callable(attr)
 

Reply via email to