From 27167da14837370f0b5d1008979064daf488d862 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Dec 02 2019 19:19:32 +0000 Subject: re-enable tests in %check The test suite passes on rawhide/F32 without issues once we use py.test directly ("python3 setup.py test" works as well but is marked as deprecated). Also I noticed that the test suite actually does not need anything special when run via py.test. :-) --- diff --git a/python-parsedatetime.spec b/python-parsedatetime.spec index 850505b..73af903 100644 --- a/python-parsedatetime.spec +++ b/python-parsedatetime.spec @@ -1,7 +1,7 @@ %{?python_enable_dependency_generator} %global realname parsedatetime -%bcond_with tests +%bcond_without tests Name: python-%{realname} Version: 2.5 @@ -16,14 +16,7 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with tests} -BuildRequires: %{_bindir}/tox -BuildRequires: python3-coverage -BuildRequires: python3-flake8 -BuildRequires: python3-mccabe -BuildRequires: python3-pyicu BuildRequires: python3-pytest -BuildRequires: python3-pytest-runner -BuildRequires: python3-pytest-cov %endif %global _description\ @@ -55,12 +48,8 @@ strings. rm -rf %{buildroot}%{python3_sitelib}/%{realname}/tests %check -# a bunch of tox tests have been added and not all packaged -# so mockbuild will fail without network. -# You can run the tests with -# fedpkg mockbuild --enable-network --with=tests %if %{with tests} -tox -e py%{python3_version_nodots} --sitepackages +py.test-3 -x tests/*.py %endif %files -n python3-%{realname}