- 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
23 lines
852 B
Diff
23 lines
852 B
Diff
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
|