Accepting request 650653 from home:scarabeus_iv:branches:devel:languages:python

- Add patch to work with new pytest:
  * sybil-pytest4.patch

OBS-URL: https://build.opensuse.org/request/show/650653
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal
2018-11-21 13:03:29 +00:00
committed by Git OBS Bridge
parent 5d1efd00a0
commit b65d030a05
3 changed files with 31 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 21 13:01:18 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch to work with new pytest:
* sybil-pytest4.patch
-------------------------------------------------------------------
Wed Aug 29 11:07:06 UTC 2018 - tchvatal@suse.com

View File

@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -25,6 +25,7 @@ License: MIT
Group: Development/Languages/Python
Url: https://github.com/cjw296/sybil
Source: https://files.pythonhosted.org/packages/source/s/sybil/sybil-%{version}.tar.gz
Patch0: sybil-pytest4.patch
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pkginfo}
@@ -57,6 +58,7 @@ test runners.
%prep
%setup -q -n sybil-%{version}
%patch0 -p1
%build
%python_build

22
sybil-pytest4.patch Normal file
View File

@@ -0,0 +1,22 @@
From 6461d8156cfb68bd073ec613a5a516916e97e549 Mon Sep 17 00:00:00 2001
From: Chris Withers <chris@simplistix.co.uk>
Date: Wed, 17 Oct 2018 11:57:55 +0100
Subject: [PATCH] fix for latest pytest release
---
tests/test_functional.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_functional.py b/tests/test_functional.py
index 9eb5509..ccce93d 100644
--- a/tests/test_functional.py
+++ b/tests/test_functional.py
@@ -27,7 +27,7 @@ def pytest_sessionfinish(self, session):
self.session = session
results = CollectResults()
- return_code = pytest_main(['-vs', join(functional_test_dir, 'pytest')],
+ return_code = pytest_main(['-vvs', join(functional_test_dir, 'pytest')],
plugins=[results])
assert return_code == 1
assert results.session.testsfailed == 4