Hello community,

here is the log from the commit of package python-pook for openSUSE:Factory 
checked in at 2020-05-06 11:04:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pook (Old)
 and      /work/SRC/openSUSE:Factory/.python-pook.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pook"

Wed May  6 11:04:45 2020 rev:4 rq:800576 version:1.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pook/python-pook.changes  2020-03-24 
22:38:17.417262849 +0100
+++ /work/SRC/openSUSE:Factory/.python-pook.new.2738/python-pook.changes        
2020-05-06 11:04:50.263336150 +0200
@@ -1,0 +2,6 @@
+Wed May  6 06:59:43 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Add patch to work with pytest5:
+  * pytest5.patch
+
+-------------------------------------------------------------------

New:
----
  pytest5.patch

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

Other differences:
------------------
++++++ python-pook.spec ++++++
--- /var/tmp/diff_new_pack.Bz9Kjp/_old  2020-05-06 11:04:51.279338331 +0200
+++ /var/tmp/diff_new_pack.Bz9Kjp/_new  2020-05-06 11:04:51.283338340 +0200
@@ -24,9 +24,9 @@
 Release:        0
 Summary:        HTTP traffic mocking and expectations
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/h2non/pook
 Source:         
https://files.pythonhosted.org/packages/source/p/pook/pook-%{version}.tar.gz
+Patch0:         pytest5.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -43,7 +43,7 @@
 BuildRequires:  %{python_module mocket >= 1.6.0}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module nose >= 1.3.7}
-BuildRequires:  %{python_module pytest < 5}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests >= 2.20.0}
 BuildRequires:  %{python_module urllib3 >= 1.19.1}
 BuildRequires:  %{python_module xmltodict >= 0.10.2}
@@ -55,6 +55,7 @@
 
 %prep
 %setup -q -n pook-%{version}
+%patch0 -p1
 rm -f setup.cfg pytest.ini tox.ini
 
 # Assist unittest on Python 2
@@ -72,8 +73,8 @@
 %check
 %{python_expand  #
 export PYTHONPATH=%{buildroot}%{$python_sitelib}
-$python -m pytest tests/unit
-$python -m pytest tests/integration/engines/pytest_suite.py
+$python -m pytest -v tests/unit
+$python -m pytest -v tests/integration/engines/pytest_suite.py
 $python -m nose tests/integration/engines/nose_suite.py
 export PYTHONPATH=%{buildroot}%{$python_sitelib}:.
 $python -m unittest tests.integration.engines.unittest_suite

++++++ pytest5.patch ++++++
>From 2071da27701c82ce02b015e01e2aa6fd203e7bb5 Mon Sep 17 00:00:00 2001
From: Tom <[email protected]>
Date: Tue, 5 May 2020 14:22:30 +0200
Subject: [PATCH] fix(#69): use match keyword in pytest.raises

---
 tests/unit/matchers/base_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unit/matchers/base_test.py b/tests/unit/matchers/base_test.py
index 175bd67..b01aa23 100644
--- a/tests/unit/matchers/base_test.py
+++ b/tests/unit/matchers/base_test.py
@@ -33,7 +33,7 @@ def test_base_matcher_exceptions():
     assert _BaseMatcher('foo').match(None) is None
 
     with pytest.raises(ValueError,
-                       message='expectation argument cannot be empty'):
+                       match='expectation argument cannot be empty'):
         _BaseMatcher(None)
 
 

Reply via email to