Hello community,

here is the log from the commit of package python-raven for openSUSE:Factory 
checked in at 2019-11-08 15:22:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-raven (Old)
 and      /work/SRC/openSUSE:Factory/.python-raven.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-raven"

Fri Nov  8 15:22:51 2019 rev:11 rq:745213 version:6.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-raven/python-raven.changes        
2019-09-30 15:56:16.041716666 +0200
+++ /work/SRC/openSUSE:Factory/.python-raven.new.2990/python-raven.changes      
2019-11-08 15:22:53.982815388 +0100
@@ -1,0 +2,5 @@
+Mon Nov  4 14:32:37 UTC 2019 - Matej Cepl <[email protected]>
+
+- Add pytest4.patch allowing the test suite to pass with pytest 4
+
+-------------------------------------------------------------------

New:
----
  pytest4.patch

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

Other differences:
------------------
++++++ python-raven.spec ++++++
--- /var/tmp/diff_new_pack.WnfQ7m/_old  2019-11-08 15:22:54.874816332 +0100
+++ /var/tmp/diff_new_pack.WnfQ7m/_new  2019-11-08 15:22:54.874816332 +0100
@@ -27,6 +27,7 @@
 Source:         
https://files.pythonhosted.org/packages/source/r/raven/raven-%{version}.tar.gz
 # https://github.com/getsentry/raven-python/issues/1284
 Patch0:         remove-unittest2.patch
+Patch1:         pytest4.patch
 BuildRequires:  %{python_module Django}
 BuildRequires:  %{python_module Flask >= 0.8}
 BuildRequires:  %{python_module Flask-Login >= 0.2.0}
@@ -42,10 +43,10 @@
 BuildRequires:  %{python_module exam >= 0.5.2}
 BuildRequires:  %{python_module kombu}
 BuildRequires:  %{python_module mock}
-BuildRequires:  %{python_module pytest < 4}
 BuildRequires:  %{python_module pytest-django}
 BuildRequires:  %{python_module pytest-pythonpath}
 BuildRequires:  %{python_module pytest-timeout >= 0.4}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pytz}
 BuildRequires:  %{python_module requests}
 BuildRequires:  %{python_module setuptools}
@@ -67,6 +68,7 @@
 %prep
 %setup -q -n raven-%{version}
 %autopatch -p1
+
 rm -f setup.cfg tox.ini pytest.ini
 
 %build

++++++ pytest4.patch ++++++
--- a/conftest.py
+++ b/conftest.py
@@ -74,6 +74,6 @@ def user_instance(request, admin_user):
 
 @pytest.fixture(autouse=True)
 def has_git_requirements(request, project_root):
-    if request.node.get_marker('has_git_requirements'):
+    if request.node.get_closest_marker('has_git_requirements'):
         if not os.path.exists(os.path.join(project_root, '.git', 'refs', 
'heads', 'master')):
             pytest.skip('skipped test as project is not a git repo')

Reply via email to