commit 9206d4a48ede856f595f806fe2bc1330c5661f5e
Author: Jakub Bogusz <[email protected]>
Date: Sun Dec 29 12:15:02 2019 +0100
- pytest-runner is deprecated, call pytest directly
python-chardet.spec | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/python-chardet.spec b/python-chardet.spec
index 56bc0be..070d722 100644
--- a/python-chardet.spec
+++ b/python-chardet.spec
@@ -81,11 +81,19 @@ Dokumentacja API moduĊu Pythona chardet.
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} -m pytest test.py
+%endif
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest test.py
+%endif
%endif
%if %{with doc}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-chardet.git/commitdiff/9206d4a48ede856f595f806fe2bc1330c5661f5e
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit