Hello community,

here is the log from the commit of package python-path.py for openSUSE:Factory 
checked in at 2019-11-04 17:07:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-path.py (Old)
 and      /work/SRC/openSUSE:Factory/.python-path.py.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-path.py"

Mon Nov  4 17:07:55 2019 rev:5 rq:741436 version:12.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-path.py/python-path.py.changes    
2019-07-30 13:06:35.566369095 +0200
+++ /work/SRC/openSUSE:Factory/.python-path.py.new.2990/python-path.py.changes  
2019-11-04 17:08:00.812364145 +0100
@@ -1,0 +2,6 @@
+Mon Oct 21 08:18:00 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to build with pytest5:
+  * pytest5.patch
+
+-------------------------------------------------------------------

New:
----
  pytest5.patch

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

Other differences:
------------------
++++++ python-path.py.spec ++++++
--- /var/tmp/diff_new_pack.YzH4XI/_old  2019-11-04 17:08:01.688365081 +0100
+++ /var/tmp/diff_new_pack.YzH4XI/_new  2019-11-04 17:08:01.692365085 +0100
@@ -25,17 +25,15 @@
 %define psuffix %{nil}
 %bcond_with test
 %endif
-
 %define skip_python2 1
-
 Name:           python-path.py%{psuffix}
 Version:        12.0.1
 Release:        0
 Summary:        A module wrapper for os.path
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/jaraco/path.py
 Source:         
https://files.pythonhosted.org/packages/source/p/path.py/path.py-%{version}.tar.gz
+Patch0:         pytest5.patch
 BuildRequires:  %{python_module setuptools_scm >= 1.15.0}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -45,8 +43,7 @@
 %if %{with test}
 BuildRequires:  %{python_module importlib-metadata >= 0.5}
 BuildRequires:  %{python_module path.py >= %{version}}
-# https://github.com/jaraco/path.py/issues/167
-BuildRequires:  %{python_module pytest < 5.0}
+BuildRequires:  %{python_module pytest}
 %endif
 %python_subpackages
 
@@ -57,6 +54,7 @@
 
 %prep
 %setup -q -n path.py-%{version}
+%patch0 -p1
 rm -rf path.py.egg-info
 # no need to pull in flake
 rm -f pytest.ini

++++++ pytest5.patch ++++++
>From 02eb16f0eb2cdc0015972ce963357aaa1cd0b84b Mon Sep 17 00:00:00 2001
From: "Jason R. Coombs" <[email protected]>
Date: Sat, 20 Jul 2019 12:57:18 -0400
Subject: [PATCH] Correct usage of exception resolution from exception info
 context. Fixes #167.

---
 test_path.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test_path.py b/test_path.py
index f2640c1..8ef2bd6 100644
--- a/test_path.py
+++ b/test_path.py
@@ -1097,7 +1097,7 @@ def test_exception_in_context(self, tmpdir):
             with doc.in_place() as (reader, writer):
                 writer.write(self.alternate_content)
                 raise RuntimeError("some error")
-        assert "some error" in str(exc)
+        assert "some error" in str(exc.value)
         with doc.open() as stream:
             data = stream.read()
         assert 'Lorem' not in data

Reply via email to