#5 Unskip tests which are working with the newest coverage
Merged 4 years ago by orion. Opened 4 years ago by lbalhar.
rpms/ lbalhar/python-pytest-cov master  into  master

file modified
+5 -4
@@ -9,7 +9,7 @@ 

  

  Name:           python-%{srcname}

  Version:        2.8.1

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        Pytest plugin for coverage reporting

  

  License:        MIT
@@ -91,13 +91,11 @@ 

  # test_dist_missing_data needs internet

  # 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_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                                   

  echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py        

  export PYTHONPATH="$(pwd)"/tests                                                

  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 \

-         and not test_multiprocessing_pool and not test_multiprocessing_pool_terminate and not test_multiprocessing_pool_close"

+     -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"

  

  

  %if %{with python2}
@@ -114,6 +112,9 @@ 

  

  

  %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

  - Drop python 2 for F32+ (bz#1767517)

  

These three tests were disabled because they caused a deadlock in combination with Python 3.8 and coverage < 5. They can be enabled back with the latest coverage.

Scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=40745271

Pull-Request has been merged by orion

4 years ago
Metadata