diff --git a/python-tox.spec b/python-tox.spec index 6ad51a0..72b7bc3 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -96,6 +96,8 @@ This is the HTML documentation for tox package. %prep %setup -q -n tox-%{version} +# remove cmdline test as they exec tox binary that is alternatived by us +rm -f tests/unit/test_z_cmdline.py %build %python_build @@ -108,9 +110,10 @@ done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +export LANG=en_US.UTF-8 export PYTHONDONTWRITEBYTECODE=1 export PATH=%{buildroot}%{_bindir}:$PATH -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not network' %post %python_install_alternative tox tox-quickstart