Make tests behave by moving to MODPY_PYTEST. Patch setup.cfg to work with
our modern pytest.
This commit is contained in:
parent
517bfe443d
commit
6e263e4e20
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2019/06/21 06:24:44 sebastia Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2019/11/07 15:05:14 kmos Exp $
|
||||
|
||||
COMMENT= HTTP library for Python
|
||||
|
||||
@ -18,17 +18,14 @@ MODPY_PI = Yes
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
MODPY_PYTEST= Yes
|
||||
|
||||
TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR} \
|
||||
devel/py-mock${MODPY_FLAVOR} \
|
||||
TEST_DEPENDS = devel/py-mock${MODPY_FLAVOR} \
|
||||
sysutils/py-psutil${MODPY_FLAVOR} \
|
||||
www/py-tornado${MODPY_FLAVOR}
|
||||
|
||||
FLAVORS = python3
|
||||
FLAVOR ?=
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX} test
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
16
www/py-urllib3/patches/patch-setup_cfg
Normal file
16
www/py-urllib3/patches/patch-setup_cfg
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-setup_cfg,v 1.1 2019/11/07 15:05:14 kmos Exp $
|
||||
|
||||
Fix format to work with modern pytest
|
||||
|
||||
Index: setup.cfg
|
||||
--- setup.cfg.orig
|
||||
+++ setup.cfg
|
||||
@@ -18,7 +18,7 @@ requires-dist =
|
||||
ipaddress; python_version=="2.7" and extra == 'secure'
|
||||
PySocks>=1.5.6,<2.0,!=1.5.7; extra == 'socks'
|
||||
|
||||
-[pytest]
|
||||
+[tool:pytest]
|
||||
xfail_strict = true
|
||||
|
||||
[egg_info]
|
Loading…
Reference in New Issue
Block a user