@ -9,7 +9,7 @@
Name: python-%{srcname}
Name: python-%{srcname}
Version: 2.8.1
Version: 2.8.1
Release: 2 %{?dist}
Release: 3 %{?dist}
Summary: Pytest plugin for coverage reporting
Summary: Pytest plugin for coverage reporting
License: MIT
License: MIT
@ -91,13 +91,11 @@ rm -rf *.egg-info
# test_dist_missing_data needs internet
# test_dist_missing_data needs internet
# test_central_subprocess/dist_subprocess https://github.com/pytest-dev/pytest-cov/issues/90
# test_central_subprocess/dist_subprocess https://github.com/pytest-dev/pytest-cov/issues/90
# test_subprocess_with_path_aliasing and test_dist_combine_racecondition tries to match strings and fails, mostly version mismatch
# test_subprocess_with_path_aliasing and test_dist_combine_racecondition tries to match strings and fails, mostly version mismatch
# test_multiprocessing_pool{,_terminate, _close} cause deadlock on Python 3.8 - https://github.com/pytest-dev/pytest-cov/issues/295
# To read a custom pth-file we need to add that path to site-dir, needed for tests at RPM build time
# To read a custom pth-file we need to add that path to site-dir, needed for tests at RPM build time
echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py
echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py
export PYTHONPATH="$(pwd)"/tests
export PYTHONPATH="$(pwd)"/tests
py.test-%{python3_version} -vv \
py.test-%{python3_version} -vv \
-k "not test_dist_missing_data and not test_subprocess_with_path_aliasing and not test_dist_combine_racecondition and not central_subprocess and not dist_subprocess \
-k "not test_dist_missing_data and not test_subprocess_with_path_aliasing and not test_dist_combine_racecondition and not central_subprocess and not dist_subprocess"
and not test_multiprocessing_pool and not test_multiprocessing_pool_terminate and not test_multiprocessing_pool_close"
%if %{with python2}
%if %{with python2}
@ -114,6 +112,9 @@ py.test-%{python3_version} -vv \
%changelog
%changelog
* Sun Jan 19 2020 Lumír Balhar <lbalhar@redhat.com> - 2.8.1-3
- Unskip tests which are working with the newest coverage
* Sun Nov 3 2019 Orion Poplawski <orion@nwra.com> - 2.8.1-2
* Sun Nov 3 2019 Orion Poplawski <orion@nwra.com> - 2.8.1-2
- Drop python 2 for F32+ (bz#1767517)
- Drop python 2 for F32+ (bz#1767517)