]> git.pld-linux.org Git - packages/python-chardet.git/commitdiff
- pytest-runner is deprecated, call pytest directly
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Dec 2019 11:15:02 +0000 (12:15 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Dec 2019 11:15:02 +0000 (12:15 +0100)
python-chardet.spec

index 56bc0beffb6daef4c6bd541f1cf91865841f4240..070d7221817d965fc1bae52b36e342b042cff6f1 100644 (file)
@@ -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}
This page took 0.144463 seconds and 4 git commands to generate.