Enable python3 tests
This commit is contained in:
parent
9b02982341
commit
bbc3044d82
@ -34,6 +34,9 @@ Requires: python-argparse
|
|||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-keyring
|
||||||
|
BuildRequires: python3-jsonschema
|
||||||
%endif # if with_python3
|
%endif # if with_python3
|
||||||
|
|
||||||
|
|
||||||
@ -102,7 +105,7 @@ popd
|
|||||||
rm setup.cfg
|
rm setup.cfg
|
||||||
PYTHONPATH=$(pwd) py.test --ignore build %{?rhel6:-k 'not test_keygen'}
|
PYTHONPATH=$(pwd) py.test --ignore build %{?rhel6:-k 'not test_keygen'}
|
||||||
# no test for Python 3, no python3-jsonschema yet
|
# no test for Python 3, no python3-jsonschema yet
|
||||||
%if 0
|
%if %{with python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
rm setup.cfg
|
rm setup.cfg
|
||||||
PYTHONPATH=$(pwd) py.test-%{python3_version} --ignore build
|
PYTHONPATH=$(pwd) py.test-%{python3_version} --ignore build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user