Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-json-report for 
openSUSE:Factory checked in at 2024-03-22 15:21:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-json-report (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-json-report.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-json-report"

Fri Mar 22 15:21:54 2024 rev:5 rq:1160568 version:1.5.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-json-report/python-pytest-json-report.changes
      2023-08-02 16:52:00.466066202 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-json-report.new.1905/python-pytest-json-report.changes
    2024-03-22 15:34:50.516310916 +0100
@@ -1,0 +2,6 @@
+Fri Mar 22 08:37:10 UTC 2024 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add python312.patch.
+- Run pytest with "python -m" to avoid problems with python 3.12
+
+-------------------------------------------------------------------

New:
----
  python312.patch

BETA DEBUG BEGIN:
  New:
- Add python312.patch.
- Run pytest with "python -m" to avoid problems with python 3.12
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-pytest-json-report.spec ++++++
--- /var/tmp/diff_new_pack.YIEJ4y/_old  2024-03-22 15:34:50.976327827 +0100
+++ /var/tmp/diff_new_pack.YIEJ4y/_new  2024-03-22 15:34:50.980327973 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-json-report
 #
-# 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
@@ -26,6 +26,8 @@
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-json-report/pytest-json-report-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM pytest-metadata-3.patch gh#numirias/pytest-json-report#90
 Patch0:         pytest-metadata-3.patch
+# PATCH-FIX-OPENSUSE python312.patch
+Patch1:         python312.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 # SECTION test requirements
@@ -56,7 +58,11 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%pytest
+# Run the tests with python -m pytest to avoid problems with import
+# mode with python 3.12
+%{python_expand #
+$python -m pytest -v
+}
 
 %files %{python_files}
 %doc README.md

++++++ python312.patch ++++++
Index: pytest-json-report-1.5.0/tests/test_jsonreport.py
===================================================================
--- pytest-json-report-1.5.0.orig/tests/test_jsonreport.py
+++ pytest-json-report-1.5.0/tests/test_jsonreport.py
@@ -200,7 +200,7 @@ def test_report_crash_and_traceback(test
             'message': 'TypeError'
         }
     ]
-    if sys.version_info < (3,):
+    if sys.version_info < (3,) or sys.version_info >= (3, 12):
         del traceback[2]
     assert call['traceback'] == traceback
 

Reply via email to