diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-08-02 00:50:21 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-08-02 00:50:21 +0000 |
| commit | ca2bcbd51e14cafb2fb04ba0a9ab1c0f83cbc71f (patch) | |
| tree | 8c439afe7c3c43c286a3ff274c20915e44368926 /dev-python/pytest-timeout/files | |
| parent | 11dc6c397065a084657c8fdc4dc27eb8a048825a (diff) | |
| download | baldeagleos-repo-ca2bcbd51e14cafb2fb04ba0a9ab1c0f83cbc71f.tar.gz baldeagleos-repo-ca2bcbd51e14cafb2fb04ba0a9ab1c0f83cbc71f.tar.xz baldeagleos-repo-ca2bcbd51e14cafb2fb04ba0a9ab1c0f83cbc71f.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/pytest-timeout/files')
| -rw-r--r-- | dev-python/pytest-timeout/files/pytest-timeout-1.4.2-optional-cov.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/pytest-timeout/files/pytest-timeout-1.4.2-optional-cov.patch b/dev-python/pytest-timeout/files/pytest-timeout-1.4.2-optional-cov.patch new file mode 100644 index 000000000000..424cfa6c57d4 --- /dev/null +++ b/dev-python/pytest-timeout/files/pytest-timeout-1.4.2-optional-cov.patch @@ -0,0 +1,27 @@ +From 65a79fe8ceb52d7ae978f4a2ecc47a1fd34fda2b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sun, 2 Aug 2020 00:11:53 +0200 +Subject: [PATCH] Skip test_cov if pytest-cov is not installed + +Skip test_cov gracefully if pytest_cov module can't be imported. +This would help us since we're removing py2 support from pytest-cov +but still need it for pytest-timeout. +--- + test_pytest_timeout.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/test_pytest_timeout.py b/test_pytest_timeout.py +index 16302d7..69707b4 100644 +--- a/test_pytest_timeout.py ++++ b/test_pytest_timeout.py +@@ -77,6 +77,7 @@ def test_thread(testdir): + ) + def test_cov(testdir): + # This test requires pytest-cov ++ pytest.importorskip("pytest_cov") + testdir.makepyfile( + """ + import time +-- +2.28.0 + |
