File pytest4.patch of Package python-raven

--- 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')
openSUSE Build Service is sponsored by