Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-magic for 
openSUSE:Factory checked in at 2026-04-02 17:40:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-magic (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-magic.new.21863 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-magic"

Thu Apr  2 17:40:42 2026 rev:14 rq:1344092 version:0.4.27

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-magic/python-python-magic.changes  
2025-06-11 16:21:37.048185251 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-magic.new.21863/python-python-magic.changes
       2026-04-02 17:40:48.522463019 +0200
@@ -1,0 +2,6 @@
+Tue Mar 31 12:44:57 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Add fix-tests-5.47.patch: fix test suite with file 5.47
+  bsc#1261199
+
+-------------------------------------------------------------------

New:
----
  fix-tests-5.47.patch

----------(New B)----------
  New:
- Add fix-tests-5.47.patch: fix test suite with file 5.47
  bsc#1261199
----------(New E)----------

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

Other differences:
------------------
++++++ python-python-magic.spec ++++++
--- /var/tmp/diff_new_pack.CxahAH/_old  2026-04-02 17:40:49.430500627 +0200
+++ /var/tmp/diff_new_pack.CxahAH/_new  2026-04-02 17:40:49.430500627 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-magic
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,6 +28,8 @@
 Source:         https://github.com/ahupp/python-magic/archive/%{version}.tar.gz
 Patch0:         https://github.com/ahupp/python-magic/commit/4ffcd591.patch
 Patch1:         magic-file-5.45.patch
+# PATCH-FIX-OPENSUSE fix-tests-5.47 bsc#1261199
+Patch2:         fix-tests-5.47.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}

++++++ fix-tests-5.47.patch ++++++
Index: python-magic-0.4.27/test/python_magic_test.py
===================================================================
--- python-magic-0.4.27.orig/test/python_magic_test.py
+++ python-magic-0.4.27/test/python_magic_test.py
@@ -93,7 +93,7 @@ class MagicTest(unittest.TestCase):
                 'magic._pyc_': ('application/octet-stream', 
'text/x-bytecode.python', 'application/x-bytecode.python'),
                 'test.pdf': 'application/pdf',
                 'test.gz': ('application/gzip', 'application/x-gzip'),
-                'test.snappy.parquet': 'application/octet-stream',
+                'test.snappy.parquet': ('application/vnd.apache.parquet', 
'application/octet-stream'),
                 'text.txt': 'text/plain',
                 b'\xce\xbb'.decode('utf-8'): 'text/plain',
                 b'\xce\xbb': 'text/plain',
@@ -124,7 +124,7 @@ class MagicTest(unittest.TestCase):
                      ': Sun Jun 29 01:32:52 2008, from Unix, truncated'
                      ),
                 'text.txt': 'ASCII text',
-                'test.snappy.parquet': ('Apache Parquet', 'Par archive data'),
+                'test.snappy.parquet': ('Apache Parquet file', 'Apache 
Parquet', 'Par archive data'),
             }, buf_equals_file=False)
         finally:
             del os.environ['TZ']

Reply via email to