File: fix-tests.patch

package info (click to toggle)
python-pytest-timeout 2.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 244 kB
  • sloc: python: 691; makefile: 8; sh: 4
file content (24 lines) | stat: -rw-r--r-- 988 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix tests
Author: Ondřej Nový <onovy@debian.org>
Forwarded: not-needed

--- a/test_pytest_timeout.py
+++ b/test_pytest_timeout.py
@@ -128,7 +128,7 @@ def test_timeout_env(pytester, monkeypat
 #     assert 'Timeout' in result.stdout.str() + result.stderr.str()
 
 
-@pytest.mark.parametrize("meth", [pytest.param("signal", marks=have_sigalrm), "thread"])
+@pytest.mark.parametrize("meth", ["thread"])
 @pytest.mark.parametrize("scope", ["function", "class", "module", "session"])
 def test_fix_setup(meth, scope, pytester):
     pytester.makepyfile(
@@ -173,7 +173,7 @@ def test_fix_setup_func_only(pytester):
     assert "Timeout" not in result.stdout.str() + result.stderr.str()
 
 
-@pytest.mark.parametrize("meth", [pytest.param("signal", marks=have_sigalrm), "thread"])
+@pytest.mark.parametrize("meth", ["thread"])
 @pytest.mark.parametrize("scope", ["function", "class", "module", "session"])
 def test_fix_finalizer(meth, scope, pytester):
     pytester.makepyfile(