12
0
forked from pool/python-apipkg

Accepting request 674125 from devel:languages:python:pytest

- Add patch to fix build with pytest newer than 4:
  * pytest4.patch

OBS-URL: https://build.opensuse.org/request/show/674125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-apipkg?expand=0&rev=5
This commit is contained in:
Stephan Kulow
2019-02-24 16:04:09 +00:00
committed by Git OBS Bridge
parent c9991e6a73
commit cee0eb30bc
3 changed files with 22 additions and 5 deletions

11
pytest4.patch Normal file
View File

@@ -0,0 +1,11 @@
--- a/test_apipkg.py
+++ b/test_apipkg.py
@@ -13,7 +13,7 @@
class TestRealModule:
def setup_class(cls):
- cls.tmpdir = py.test.ensuretemp('test_apipkg')
+ cls.tmpdir = py.path.local('test_apipkg')
sys.path = [str(cls.tmpdir)] + sys.path
pkgdir = cls.tmpdir.ensure('realtest', dir=1)