Fix the tests

This commit is contained in:
Miro Hrončok 2018-08-20 19:39:01 +02:00
parent 9553466b63
commit bc4f44f9f2

View File

@ -1,7 +1,6 @@
%global modname argcomplete
# https://github.com/kislyuk/argcomplete/issues/256
%bcond_with check
%bcond_without check
Name: python-%{modname}
Summary: Bash tab completion for argparse
@ -52,9 +51,10 @@ Python 3 version.
%autosetup -n %{modname}-%{version}
# Remove useless BRs
sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py
sed -i -e "1s|#!.*python.*|#!%{__python3}|" test/prog scripts/*
# https://github.com/kislyuk/argcomplete/issues/255
sed -i -e "s|python |%{__python3} |" test/test.py
# https://github.com/kislyuk/argcomplete/issues/256
sed -i -e "1s|#!.*python.*|#!%{__python3}|" test/prog scripts/*
sed -i -e "s|python |python3 |" test/test.py
%build
%py3_build