Source: python-pytest-timeout
Version: 2.1.0-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230925 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=pybuild --with python3
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:291: python3.11 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:291: /usr/bin/python3 setup.py build 
> running build
> running build_py
> copying pytest_timeout.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:291: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build; 
> python3.11 -m pytest 
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: tox.ini
> plugins: cov-4.1.0
> collected 33 items
> 
> test_pytest_timeout.py FFFFFFFFFFFFFFFFFFFFFFF..FF.xx.FF                 
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _________________________________ test_header 
> __________________________________
> 
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_header0')>
> 
>     def test_header(testdir):
>         testdir.makepyfile(
>             """
>             def test_x(): pass
>         """
>         )
>         result = testdir.runpytest("--timeout=1")
> >       result.stdout.fnmatch_lines(
>             ["timeout: 1.0s", "timeout method:*", "timeout func_only:*"]
>         )
> E       Failed: remains unmatched: 'timeout: 1.0s'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:35:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_header0/runpytest-0 --timeout=1
>      in: /tmp/pytest-of-user42/pytest-9/test_header0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_header0
> 
> _________________________________ test_sigalrm 
> _________________________________
> 
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_sigalrm0')>
> 
>     @have_sigalrm
>     def test_sigalrm(testdir):
>         testdir.makepyfile(
>             """
>             import time
>     
>             def test_foo():
>                 time.sleep(2)
>          """
>         )
>         result = testdir.runpytest("--timeout=1")
> >       result.stdout.fnmatch_lines(["*Failed: Timeout >1.0s*"])
> E       Failed: remains unmatched: '*Failed: Timeout >1.0s*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:51:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_sigalrm0/runpytest-0 
> --timeout=1
>      in: /tmp/pytest-of-user42/pytest-9/test_sigalrm0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_sigalrm0
> 
> _________________________________ test_thread 
> __________________________________
> 
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_thread0')>
> 
>     def test_thread(testdir):
>         testdir.makepyfile(
>             """
>             import time
>     
>             def test_foo():
>                 time.sleep(2)
>         """
>         )
>         result = testdir.runpytest("--timeout=1", "--timeout-method=thread")
> >       result.stderr.fnmatch_lines(
>             [
>                 "*++ Timeout ++*",
>                 "*~~ Stack of MainThread* ~~*",
>                 "*File *, line *, in *",
>                 "*++ Timeout ++*",
>             ]
>         )
> E       Failed: nomatch: '*++ Timeout ++*'
> E           and: 'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]'
> E           and: '__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread'
> E           and: '  inifile: None'
> E           and: '  rootdir: /tmp/pytest-of-user42/pytest-9/test_thread0'
> E           and: ''
> E       remains unmatched: '*++ Timeout ++*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:64:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_thread0/runpytest-0 
> --timeout=1 --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_thread0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_thread0
> 
> ___________________________________ test_cov 
> ___________________________________
> 
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_cov0')>
> 
>     @pytest.mark.skipif(
>         hasattr(sys, "pypy_version_info"), reason="pypy coverage seems broken 
> currently"
>     )
>     def test_cov(testdir):
>         # This test requires pytest-cov
>         pytest.importorskip("pytest_cov")
>         testdir.makepyfile(
>             """
>             import time
>     
>             def test_foo():
>                 time.sleep(2)
>         """
>         )
>         result = testdir.runpytest(
>             "--timeout=1", "--cov=test_cov", "--timeout-method=thread"
>         )
> >       result.stderr.fnmatch_lines(
>             [
>                 "*++ Timeout ++*",
>                 "*~~ Stack of MainThread* ~~*",
>                 "*File *, line *, in *",
>                 "*++ Timeout ++*",
>             ]
>         )
> E       Failed: nomatch: '*++ Timeout ++*'
> E           and: 'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]'
> E           and: '__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread'
> E           and: '  inifile: None'
> E           and: '  rootdir: /tmp/pytest-of-user42/pytest-9/test_cov0'
> E           and: ''
> E       remains unmatched: '*++ Timeout ++*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:92:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_cov0/runpytest-0 --timeout=1 
> --cov=test_cov --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_cov0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_cov0
> 
> _______________________________ test_timeout_env 
> _______________________________
> 
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_timeout_env0')>
> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f55e432ed10>
> 
>     def test_timeout_env(testdir, monkeypatch):
>         testdir.makepyfile(
>             """
>             import time
>     
>             def test_foo():
>                 time.sleep(2)
>         """
>         )
>         monkeypatch.setitem(os.environ, "PYTEST_TIMEOUT", "1")
>         result = testdir.runpytest()
> >       assert result.ret > 0
> E       assert <ExitCode.OK: 0> > 0
> E        +  where <ExitCode.OK: 0> = <RunResult ret=0 len(stdout.lines)=9 
> len(stderr.lines)=0 duration=2.24s>.ret
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:114:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_env0/runpytest-0
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_env0
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_env0
> plugins: cov-4.1.0
> collected 1 item
> 
> test_timeout_env.py .                                                    
> [100%]
> 
> ============================== 1 passed in 2.01s 
> ===============================
> _______________________ test_fix_setup[function-thread] 
> ________________________
> 
> meth = 'thread', scope = 'function'
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_fix_setup0')>
> 
>     @pytest.mark.parametrize("meth", ["thread"])
>     @pytest.mark.parametrize("scope", ["function", "class", "module", 
> "session"])
>     def test_fix_setup(meth, scope, testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture(scope='{scope}')
>                 def fix(self):
>                     time.sleep(2)
>     
>                 def test_foo(self, fix):
>                     pass
>         """.format(
>                 scope=scope
>             )
>         )
>         result = testdir.runpytest("--timeout=1", f"--timeout-method={meth}")
>         assert result.ret > 0
> >       assert "Timeout" in result.stdout.str() + result.stderr.str()
> E       AssertionError: assert 'Timeout' in ('' + 'ERROR: usage: __main__.py 
> [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized 
> arguments: --timeout=1 --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_setup0\n')
> E        +  where '' = <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326cd0>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326cd0>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326cd0>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e4326cd0> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stdout
> E        +  and   'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_setup0\n' = <bound method 
> LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f55e4326a90>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326a90>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326a90>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e4326a90> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stderr
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:156:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_setup0/runpytest-0 
> --timeout=1 --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_setup0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_setup0
> 
> _________________________ test_fix_setup[class-thread] 
> _________________________
> 
> meth = 'thread', scope = 'class'
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_fix_setup1')>
> 
>     @pytest.mark.parametrize("meth", ["thread"])
>     @pytest.mark.parametrize("scope", ["function", "class", "module", 
> "session"])
>     def test_fix_setup(meth, scope, testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture(scope='{scope}')
>                 def fix(self):
>                     time.sleep(2)
>     
>                 def test_foo(self, fix):
>                     pass
>         """.format(
>                 scope=scope
>             )
>         )
>         result = testdir.runpytest("--timeout=1", f"--timeout-method={meth}")
>         assert result.ret > 0
> >       assert "Timeout" in result.stdout.str() + result.stderr.str()
> E       AssertionError: assert 'Timeout' in ('' + 'ERROR: usage: __main__.py 
> [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized 
> arguments: --timeout=1 --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_setup1\n')
> E        +  where '' = <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326610>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326610>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326610>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e4326610> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.24s>.stdout
> E        +  and   'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_setup1\n' = <bound method 
> LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f55e4326110>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326110>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e4326110>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e4326110> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.24s>.stderr
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:156:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_setup1/runpytest-0 
> --timeout=1 --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_setup1
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_setup1
> 
> ________________________ test_fix_setup[module-thread] 
> _________________________
> 
> meth = 'thread', scope = 'module'
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_fix_setup2')>
> 
>     @pytest.mark.parametrize("meth", ["thread"])
>     @pytest.mark.parametrize("scope", ["function", "class", "module", 
> "session"])
>     def test_fix_setup(meth, scope, testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture(scope='{scope}')
>                 def fix(self):
>                     time.sleep(2)
>     
>                 def test_foo(self, fix):
>                     pass
>         """.format(
>                 scope=scope
>             )
>         )
>         result = testdir.runpytest("--timeout=1", f"--timeout-method={meth}")
>         assert result.ret > 0
> >       assert "Timeout" in result.stdout.str() + result.stderr.str()
> E       AssertionError: assert 'Timeout' in ('' + 'ERROR: usage: __main__.py 
> [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized 
> arguments: --timeout=1 --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_setup2\n')
> E        +  where '' = <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e432ef50>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e432ef50>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e432ef50>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e432ef50> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.23s>.stdout
> E        +  and   'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_setup2\n' = <bound method 
> LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f55e432ff50>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e432ff50>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e432ff50>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e432ff50> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.23s>.stderr
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:156:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_setup2/runpytest-0 
> --timeout=1 --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_setup2
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_setup2
> 
> ________________________ test_fix_setup[session-thread] 
> ________________________
> 
> meth = 'thread', scope = 'session'
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_fix_setup3')>
> 
>     @pytest.mark.parametrize("meth", ["thread"])
>     @pytest.mark.parametrize("scope", ["function", "class", "module", 
> "session"])
>     def test_fix_setup(meth, scope, testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture(scope='{scope}')
>                 def fix(self):
>                     time.sleep(2)
>     
>                 def test_foo(self, fix):
>                     pass
>         """.format(
>                 scope=scope
>             )
>         )
>         result = testdir.runpytest("--timeout=1", f"--timeout-method={meth}")
>         assert result.ret > 0
> >       assert "Timeout" in result.stdout.str() + result.stderr.str()
> E       AssertionError: assert 'Timeout' in ('' + 'ERROR: usage: __main__.py 
> [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized 
> arguments: --timeout=1 --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_setup3\n')
> E        +  where '' = <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e4fbc5d0>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e4fbc5d0>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e4fbc5d0>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e4fbc5d0> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stdout
> E        +  and   'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_setup3\n' = <bound method 
> LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f55e430e0d0>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e430e0d0>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e430e0d0>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e430e0d0> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stderr
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:156:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_setup3/runpytest-0 
> --timeout=1 --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_setup3
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_setup3
> 
> ___________________________ test_fix_setup_func_only 
> ___________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_fix_setup_func_only0')>
> 
>     def test_fix_setup_func_only(testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture
>                 def fix(self):
>                     time.sleep(0.1)
>     
>                 @pytest.mark.timeout(func_only=True)
>                 def test_foo(self, fix):
>                     pass
>         """
>         )
>         result = testdir.runpytest("--timeout=1")
> >       assert result.ret == 0
> E       assert <ExitCode.USAGE_ERROR: 4> == 0
> E        +  where <ExitCode.USAGE_ERROR: 4> = <RunResult ret=4 
> len(stdout.lines)=0 len(stderr.lines)=5 duration=0.21s>.ret
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:176:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_setup_func_only0/runpytest-0
>  --timeout=1
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_setup_func_only0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_setup_func_only0
> 
> _____________________ test_fix_finalizer[function-thread] 
> ______________________
> 
> meth = 'thread', scope = 'function'
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_fix_finalizer0')>
> 
>     @pytest.mark.parametrize("meth", ["thread"])
>     @pytest.mark.parametrize("scope", ["function", "class", "module", 
> "session"])
>     def test_fix_finalizer(meth, scope, testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture
>                 def fix(self, request):
>                     print('fix setup')
>                     def fin():
>                         print('fix finaliser')
>                         time.sleep(2)
>                     request.addfinalizer(fin)
>     
>                 def test_foo(self, fix):
>                     pass
>         """
>         )
>         result = testdir.runpytest("--timeout=1", "-s", 
> f"--timeout-method={meth}")
>         assert result.ret > 0
> >       assert "Timeout" in result.stdout.str() + result.stderr.str()
> E       AssertionError: assert 'Timeout' in ('' + 'ERROR: usage: __main__.py 
> [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized 
> arguments: --timeout=1 --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_finalizer0\n')
> E        +  where '' = <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f1050>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f1050>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f1050>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e42f1050> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stdout
> E        +  and   'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_finalizer0\n' = <bound method 
> LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f55e42f1a10>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f1a10>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f1a10>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e42f1a10> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stderr
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:203:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_finalizer0/runpytest-0 
> --timeout=1 -s --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer0
> 
> _______________________ test_fix_finalizer[class-thread] 
> _______________________
> 
> meth = 'thread', scope = 'class'
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_fix_finalizer1')>
> 
>     @pytest.mark.parametrize("meth", ["thread"])
>     @pytest.mark.parametrize("scope", ["function", "class", "module", 
> "session"])
>     def test_fix_finalizer(meth, scope, testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture
>                 def fix(self, request):
>                     print('fix setup')
>                     def fin():
>                         print('fix finaliser')
>                         time.sleep(2)
>                     request.addfinalizer(fin)
>     
>                 def test_foo(self, fix):
>                     pass
>         """
>         )
>         result = testdir.runpytest("--timeout=1", "-s", 
> f"--timeout-method={meth}")
>         assert result.ret > 0
> >       assert "Timeout" in result.stdout.str() + result.stderr.str()
> E       AssertionError: assert 'Timeout' in ('' + 'ERROR: usage: __main__.py 
> [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized 
> arguments: --timeout=1 --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_finalizer1\n')
> E        +  where '' = <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f61d0>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f61d0>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f61d0>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e42f61d0> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.21s>.stdout
> E        +  and   'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_finalizer1\n' = <bound method 
> LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f55e42f5690>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f5690>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e42f5690>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e42f5690> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.21s>.stderr
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:203:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_finalizer1/runpytest-0 
> --timeout=1 -s --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer1
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer1
> 
> ______________________ test_fix_finalizer[module-thread] 
> _______________________
> 
> meth = 'thread', scope = 'module'
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_fix_finalizer2')>
> 
>     @pytest.mark.parametrize("meth", ["thread"])
>     @pytest.mark.parametrize("scope", ["function", "class", "module", 
> "session"])
>     def test_fix_finalizer(meth, scope, testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture
>                 def fix(self, request):
>                     print('fix setup')
>                     def fin():
>                         print('fix finaliser')
>                         time.sleep(2)
>                     request.addfinalizer(fin)
>     
>                 def test_foo(self, fix):
>                     pass
>         """
>         )
>         result = testdir.runpytest("--timeout=1", "-s", 
> f"--timeout-method={meth}")
>         assert result.ret > 0
> >       assert "Timeout" in result.stdout.str() + result.stderr.str()
> E       AssertionError: assert 'Timeout' in ('' + 'ERROR: usage: __main__.py 
> [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized 
> arguments: --timeout=1 --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_finalizer2\n')
> E        +  where '' = <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e427f090>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e427f090>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e427f090>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e427f090> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stdout
> E        +  and   'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_finalizer2\n' = <bound method 
> LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f55e427db50>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e427db50>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e427db50>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e427db50> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stderr
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:203:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_finalizer2/runpytest-0 
> --timeout=1 -s --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer2
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer2
> 
> ______________________ test_fix_finalizer[session-thread] 
> ______________________
> 
> meth = 'thread', scope = 'session'
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_fix_finalizer3')>
> 
>     @pytest.mark.parametrize("meth", ["thread"])
>     @pytest.mark.parametrize("scope", ["function", "class", "module", 
> "session"])
>     def test_fix_finalizer(meth, scope, testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture
>                 def fix(self, request):
>                     print('fix setup')
>                     def fin():
>                         print('fix finaliser')
>                         time.sleep(2)
>                     request.addfinalizer(fin)
>     
>                 def test_foo(self, fix):
>                     pass
>         """
>         )
>         result = testdir.runpytest("--timeout=1", "-s", 
> f"--timeout-method={meth}")
>         assert result.ret > 0
> >       assert "Timeout" in result.stdout.str() + result.stderr.str()
> E       AssertionError: assert 'Timeout' in ('' + 'ERROR: usage: __main__.py 
> [options] [file_or_dir] [file_or_dir] [...]\n__main__.py: error: unrecognized 
> arguments: --timeout=1 --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_finalizer3\n')
> E        +  where '' = <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42e7990>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42e7990>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e42e7990>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e42e7990> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stdout
> E        +  and   'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]\n__main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread\n  inifile: None\n  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_fix_finalizer3\n' = <bound method 
> LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f55e42e6f50>>()
> E        +    where <bound method LineMatcher.str of 
> <_pytest.pytester.LineMatcher object at 0x7f55e42e6f50>> = 
> <_pytest.pytester.LineMatcher object at 0x7f55e42e6f50>.str
> E        +      where <_pytest.pytester.LineMatcher object at 0x7f55e42e6f50> 
> = <RunResult ret=4 len(stdout.lines)=0 len(stderr.lines)=5 
> duration=0.22s>.stderr
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:203:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_finalizer3/runpytest-0 
> --timeout=1 -s --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer3
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1 
> --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer3
> 
> _________________________ test_fix_finalizer_func_only 
> _________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_fix_finalizer_func_only0')>
> 
>     def test_fix_finalizer_func_only(testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             class TestFoo:
>     
>                 @pytest.fixture
>                 def fix(self, request):
>                     print('fix setup')
>                     def fin():
>                         print('fix finaliser')
>                         time.sleep(0.1)
>                     request.addfinalizer(fin)
>     
>                 @pytest.mark.timeout(func_only=True)
>                 def test_foo(self, fix):
>                     pass
>         """
>         )
>         result = testdir.runpytest("--timeout=1", "-s")
> >       assert result.ret == 0
> E       assert <ExitCode.USAGE_ERROR: 4> == 0
> E        +  where <ExitCode.USAGE_ERROR: 4> = <RunResult ret=4 
> len(stdout.lines)=0 len(stderr.lines)=5 duration=0.22s>.ret
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:227:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_fix_finalizer_func_only0/runpytest-0
>  --timeout=1 -s
>      in: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer_func_only0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_fix_finalizer_func_only0
> 
> __________________________ test_timeout_mark_sigalrm 
> ___________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_timeout_mark_sigalrm0')>
> 
>     @have_sigalrm
>     def test_timeout_mark_sigalrm(testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             @pytest.mark.timeout(1)
>             def test_foo():
>                 time.sleep(2)
>                 assert False
>         """
>         )
>         result = testdir.runpytest()
> >       result.stdout.fnmatch_lines(["*Failed: Timeout >1.0s*"])
> E       Failed: nomatch: '*Failed: Timeout >1.0s*'
> E           and: '============================= test session starts 
> =============================='
> E           and: 'platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0'
> E           and: 'rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_sigalrm0'
> E           and: 'plugins: cov-4.1.0'
> E           and: 'collected 1 item'
> E           and: ''
> E           and: 'test_timeout_mark_sigalrm.py F                              
>              [100%]'
> E           and: ''
> E           and: '=================================== FAILURES 
> ==================================='
> E           and: '___________________________________ test_foo 
> ___________________________________'
> E           and: ''
> E           and: '    @pytest.mark.timeout(1)'
> E           and: '    def test_foo():'
> E           and: '        time.sleep(2)'
> E           and: '>       assert False'
> E           and: 'E       assert False'
> E           and: ''
> E           and: 'test_timeout_mark_sigalrm.py:6: AssertionError'
> E           and: '=============================== warnings summary 
> ==============================='
> E           and: 'test_timeout_mark_sigalrm.py:3'
> E           and: '  
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_sigalrm0/test_timeout_mark_sigalrm.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html'
> E           and: '    @pytest.mark.timeout(1)'
> E           and: ''
> E           and: '-- Docs: 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html'
> E           and: '=========================== short test summary info 
> ============================'
> E           and: 'FAILED test_timeout_mark_sigalrm.py::test_foo - assert 
> False'
> E           and: '========================= 1 failed, 1 warning in 2.02s 
> ========================='
> E       remains unmatched: '*Failed: Timeout >1.0s*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:244:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_mark_sigalrm0/runpytest-0
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_sigalrm0
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_sigalrm0
> plugins: cov-4.1.0
> collected 1 item
> 
> test_timeout_mark_sigalrm.py F                                           
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ___________________________________ test_foo 
> ___________________________________
> 
>     @pytest.mark.timeout(1)
>     def test_foo():
>         time.sleep(2)
> >       assert False
> E       assert False
> 
> test_timeout_mark_sigalrm.py:6: AssertionError
> =============================== warnings summary 
> ===============================
> test_timeout_mark_sigalrm.py:3
>   
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_sigalrm0/test_timeout_mark_sigalrm.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html
>     @pytest.mark.timeout(1)
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED test_timeout_mark_sigalrm.py::test_foo - assert False
> ========================= 1 failed, 1 warning in 2.02s 
> =========================
> ___________________________ test_timeout_mark_timer 
> ____________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_timeout_mark_timer0')>
> 
>     def test_timeout_mark_timer(testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             @pytest.mark.timeout(1)
>             def test_foo():
>                 time.sleep(2)
>         """
>         )
>         result = testdir.runpytest("--timeout-method=thread")
> >       result.stderr.fnmatch_lines(["*++ Timeout ++*"])
> E       Failed: nomatch: '*++ Timeout ++*'
> E           and: 'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]'
> E           and: '__main__.py: error: unrecognized arguments: 
> --timeout-method=thread'
> E           and: '  inifile: None'
> E           and: '  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_timer0'
> E           and: ''
> E       remains unmatched: '*++ Timeout ++*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:258:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_mark_timer0/runpytest-0
>  --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_timer0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_timer0
> 
> __________________________ test_timeout_mark_non_int 
> ___________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_int0')>
> 
>     def test_timeout_mark_non_int(testdir):
>         testdir.makepyfile(
>             """
>          import time, pytest
>     
>          @pytest.mark.timeout(0.01)
>          def test_foo():
>              time.sleep(1)
>         """
>         )
>         result = testdir.runpytest("--timeout-method=thread")
> >       result.stderr.fnmatch_lines(["*++ Timeout ++*"])
> E       Failed: nomatch: '*++ Timeout ++*'
> E           and: 'ERROR: usage: __main__.py [options] [file_or_dir] 
> [file_or_dir] [...]'
> E           and: '__main__.py: error: unrecognized arguments: 
> --timeout-method=thread'
> E           and: '  inifile: None'
> E           and: '  rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_int0'
> E           and: ''
> E       remains unmatched: '*++ Timeout ++*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:272:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_int0/runpytest-0
>  --timeout-method=thread
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_int0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout-method=thread
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_int0
> 
> _________________________ test_timeout_mark_non_number 
> _________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_number0')>
> 
>     def test_timeout_mark_non_number(testdir):
>         testdir.makepyfile(
>             """
>             import pytest
>     
>             @pytest.mark.timeout('foo')
>             def test_foo():
>                 pass
>        """
>         )
>         result = testdir.runpytest()
> >       result.stdout.fnmatch_lines(["*ValueError*"])
> E       Failed: nomatch: '*ValueError*'
> E           and: '============================= test session starts 
> =============================='
> E           and: 'platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0'
> E           and: 'rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_number0'
> E           and: 'plugins: cov-4.1.0'
> E           and: 'collected 1 item'
> E           and: ''
> E           and: 'test_timeout_mark_non_number.py .                           
>              [100%]'
> E           and: ''
> E           and: '=============================== warnings summary 
> ==============================='
> E           and: 'test_timeout_mark_non_number.py:3'
> E           and: '  
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_number0/test_timeout_mark_non_number.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html'
> E           and: "    @pytest.mark.timeout('foo')"
> E           and: ''
> E           and: '-- Docs: 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html'
> E           and: '========================= 1 passed, 1 warning in 0.01s 
> ========================='
> E       remains unmatched: '*ValueError*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:286:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_number0/runpytest-0
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_number0
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_number0
> plugins: cov-4.1.0
> collected 1 item
> 
> test_timeout_mark_non_number.py .                                        
> [100%]
> 
> =============================== warnings summary 
> ===============================
> test_timeout_mark_non_number.py:3
>   
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_non_number0/test_timeout_mark_non_number.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html
>     @pytest.mark.timeout('foo')
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ========================= 1 passed, 1 warning in 0.01s 
> =========================
> ____________________________ test_timeout_mark_args 
> ____________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_timeout_mark_args0')>
> 
>     def test_timeout_mark_args(testdir):
>         testdir.makepyfile(
>             """
>             import pytest
>     
>             @pytest.mark.timeout(1, 2)
>             def test_foo():
>                 pass
>         """
>         )
>         result = testdir.runpytest()
> >       result.stdout.fnmatch_lines(["*ValueError*"])
> E       Failed: nomatch: '*ValueError*'
> E           and: '============================= test session starts 
> =============================='
> E           and: 'platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0'
> E           and: 'rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_args0'
> E           and: 'plugins: cov-4.1.0'
> E           and: 'collected 1 item'
> E           and: ''
> E           and: 'test_timeout_mark_args.py .                                 
>              [100%]'
> E           and: ''
> E           and: '=============================== warnings summary 
> ==============================='
> E           and: 'test_timeout_mark_args.py:3'
> E           and: '  
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_args0/test_timeout_mark_args.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html'
> E           and: '    @pytest.mark.timeout(1, 2)'
> E           and: ''
> E           and: '-- Docs: 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html'
> E           and: '========================= 1 passed, 1 warning in 0.01s 
> ========================='
> E       remains unmatched: '*ValueError*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:300:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_mark_args0/runpytest-0
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_args0
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_args0
> plugins: cov-4.1.0
> collected 1 item
> 
> test_timeout_mark_args.py .                                              
> [100%]
> 
> =============================== warnings summary 
> ===============================
> test_timeout_mark_args.py:3
>   
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_args0/test_timeout_mark_args.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html
>     @pytest.mark.timeout(1, 2)
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ========================= 1 passed, 1 warning in 0.01s 
> =========================
> ________________________ test_timeout_mark_method_nokw 
> _________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_timeout_mark_method_nokw0')>
> 
>     def test_timeout_mark_method_nokw(testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             @pytest.mark.timeout(1, 'thread')
>             def test_foo():
>                 time.sleep(2)
>         """
>         )
>         result = testdir.runpytest()
> >       result.stderr.fnmatch_lines(["*+ Timeout +*"])
> E       Failed: remains unmatched: '*+ Timeout +*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:314:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_mark_method_nokw0/runpytest-0
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_method_nokw0
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_method_nokw0
> plugins: cov-4.1.0
> collected 1 item
> 
> test_timeout_mark_method_nokw.py .                                       
> [100%]
> 
> =============================== warnings summary 
> ===============================
> test_timeout_mark_method_nokw.py:3
>   
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_method_nokw0/test_timeout_mark_method_nokw.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html
>     @pytest.mark.timeout(1, 'thread')
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ========================= 1 passed, 1 warning in 2.01s 
> =========================
> ___________________________ test_timeout_mark_noargs 
> ___________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_timeout_mark_noargs0')>
> 
>     def test_timeout_mark_noargs(testdir):
>         testdir.makepyfile(
>             """
>             import pytest
>     
>             @pytest.mark.timeout
>             def test_foo():
>                 pass
>         """
>         )
>         result = testdir.runpytest()
> >       result.stdout.fnmatch_lines(["*TypeError*"])
> E       Failed: nomatch: '*TypeError*'
> E           and: '============================= test session starts 
> =============================='
> E           and: 'platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0'
> E           and: 'rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_noargs0'
> E           and: 'plugins: cov-4.1.0'
> E           and: 'collected 1 item'
> E           and: ''
> E           and: 'test_timeout_mark_noargs.py .                               
>              [100%]'
> E           and: ''
> E           and: '=============================== warnings summary 
> ==============================='
> E           and: 'test_timeout_mark_noargs.py:3'
> E           and: '  
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_noargs0/test_timeout_mark_noargs.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html'
> E           and: '    @pytest.mark.timeout'
> E           and: ''
> E           and: '-- Docs: 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html'
> E           and: '========================= 1 passed, 1 warning in 0.01s 
> ========================='
> E       remains unmatched: '*TypeError*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:328:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_mark_noargs0/runpytest-0
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_noargs0
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_mark_noargs0
> plugins: cov-4.1.0
> collected 1 item
> 
> test_timeout_mark_noargs.py .                                            
> [100%]
> 
> =============================== warnings summary 
> ===============================
> test_timeout_mark_noargs.py:3
>   
> /tmp/pytest-of-user42/pytest-9/test_timeout_mark_noargs0/test_timeout_mark_noargs.py:3:
>  PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
> can register custom marks to avoid this warning - for details, see 
> https://docs.pytest.org/en/stable/how-to/mark.html
>     @pytest.mark.timeout
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ========================= 1 passed, 1 warning in 0.01s 
> =========================
> _______________________________ test_ini_timeout 
> _______________________________
> 
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_ini_timeout0')>
> 
>     def test_ini_timeout(testdir):
>         testdir.makepyfile(
>             """
>             import time
>     
>             def test_foo():
>                 time.sleep(2)
>         """
>         )
>         testdir.makeini(
>             """
>             [pytest]
>             timeout = 1
>         """
>         )
>         result = testdir.runpytest()
> >       assert result.ret
> E       assert <ExitCode.OK: 0>
> E        +  where <ExitCode.OK: 0> = <RunResult ret=0 len(stdout.lines)=17 
> len(stderr.lines)=0 duration=2.29s>.ret
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:347:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_ini_timeout0/runpytest-0
>      in: /tmp/pytest-of-user42/pytest-9/test_ini_timeout0
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_ini_timeout0
> configfile: tox.ini
> plugins: cov-4.1.0
> collected 1 item
> 
> test_ini_timeout.py .                                                    
> [100%]
> 
> =============================== warnings summary 
> ===============================
> ../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1373
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1373: 
> PytestConfigWarning: Unknown config option: timeout
>   
>     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ========================= 1 passed, 1 warning in 2.01s 
> =========================
> _______________________ test_timeout_marker_inheritance 
> ________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_timeout_marker_inheritance0')>
> 
>     def test_timeout_marker_inheritance(testdir):
>         testdir.makepyfile(
>             """
>             import time, pytest
>     
>             @pytest.mark.timeout(timeout=2)
>             class TestFoo:
>     
>                 @pytest.mark.timeout(timeout=3)
>                 def test_foo_2(self):
>                     time.sleep(2)
>     
>                 def test_foo_1(self):
>                     time.sleep(1)
>         """
>         )
>         result = testdir.runpytest("--timeout=1", "-s")
> >       assert result.ret == 0
> E       assert <ExitCode.USAGE_ERROR: 4> == 0
> E        +  where <ExitCode.USAGE_ERROR: 4> = <RunResult ret=4 
> len(stdout.lines)=0 len(stderr.lines)=5 duration=0.22s>.ret
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:411:
>  AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_timeout_marker_inheritance0/runpytest-0
>  --timeout=1 -s
>      in: /tmp/pytest-of-user42/pytest-9/test_timeout_marker_inheritance0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_timeout_marker_inheritance0
> 
> _______________________________ test_marker_help 
> _______________________________
> 
> testdir = <Testdir local('/tmp/pytest-of-user42/pytest-9/test_marker_help0')>
> 
>     def test_marker_help(testdir):
>         result = testdir.runpytest("--markers")
> >       result.stdout.fnmatch_lines(["@pytest.mark.timeout(*"])
> E       Failed: nomatch: '@pytest.mark.timeout(*'
> E           and: '@pytest.mark.no_cover: disable coverage for this test.'
> E           and: ''
> E           and: '@pytest.mark.filterwarnings(warning): add a warning filter 
> to the given test. see 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#pytest-mark-filterwarnings
>  '
> E           and: ''
> E           and: '@pytest.mark.skip(reason=None): skip the given test 
> function with an optional reason. Example: skip(reason="no way of currently 
> testing this") skips the test.'
> E           and: ''
> E           and: "@pytest.mark.skipif(condition, ..., *, reason=...): skip 
> the given test function if any of the conditions evaluate to True. Example: 
> skipif(sys.platform == 'win32') skips the test if we are on the win32 
> platform. See 
> https://docs.pytest.org/en/stable/reference/reference.html#pytest-mark-skipif";
> E           and: ''
> E           and: "@pytest.mark.xfail(condition, ..., *, reason=..., run=True, 
> raises=None, strict=xfail_strict): mark the test function as an expected 
> failure if any of the conditions evaluate to True. Optionally specify a 
> reason for better reporting and run=False if you don't even want to execute 
> the test function. If only specific exception(s) are expected, you can list 
> them in raises, and if the test fails in other ways, it will be reported as a 
> true failure. See 
> https://docs.pytest.org/en/stable/reference/reference.html#pytest-mark-xfail";
> E           and: ''
> E           and: "@pytest.mark.parametrize(argnames, argvalues): call a test 
> function multiple times passing in different arguments in turn. argvalues 
> generally needs to be a list of values if argnames specifies only one name or 
> a list of tuples of values if argnames specifies multiple names. Example: 
> @parametrize('arg1', [1,2]) would lead to two calls of the decorated test 
> function, one with arg1=1 and another with arg1=2.see 
> https://docs.pytest.org/en/stable/how-to/parametrize.html for more info and 
> examples."
> E           and: ''
> E           and: '@pytest.mark.usefixtures(fixturename1, fixturename2, ...): 
> mark tests as needing all of the specified fixtures. see 
> https://docs.pytest.org/en/stable/explanation/fixtures.html#usefixtures '
> E           and: ''
> E           and: '@pytest.mark.tryfirst: mark a hook implementation function 
> such that the plugin machinery will try to call it first/as early as 
> possible. DEPRECATED, use @pytest.hookimpl(tryfirst=True) instead.'
> E           and: ''
> E           and: '@pytest.mark.trylast: mark a hook implementation function 
> such that the plugin machinery will try to call it last/as late as possible. 
> DEPRECATED, use @pytest.hookimpl(trylast=True) instead.'
> E           and: ''
> E       remains unmatched: '@pytest.mark.timeout(*'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:417:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_marker_help0/runpytest-0 
> --markers
>      in: /tmp/pytest-of-user42/pytest-9/test_marker_help0
> @pytest.mark.no_cover: disable coverage for this test.
> 
> @pytest.mark.filterwarnings(warning): add a warning filter to the given test. 
> see 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#pytest-mark-filterwarnings
>  
> 
> @pytest.mark.skip(reason=None): skip the given test function with an optional 
> reason. Example: skip(reason="no way of currently testing this") skips the 
> test.
> 
> @pytest.mark.skipif(condition, ..., *, reason=...): skip the given test 
> function if any of the conditions evaluate to True. Example: 
> skipif(sys.platform == 'win32') skips the test if we are on the win32 
> platform. See 
> https://docs.pytest.org/en/stable/reference/reference.html#pytest-mark-skipif
> 
> @pytest.mark.xfail(condition, ..., *, reason=..., run=True, raises=None, 
> strict=xfail_strict): mark the test function as an expected failure if any of 
> the conditions evaluate to True. Optionally specify a reason for better 
> reporting and run=False if you don't even want to execute the test function. 
> If only specific exception(s) are expected, you can list them in raises, and 
> if the test fails in other ways, it will be reported as a true failure. See 
> https://docs.pytest.org/en/stable/reference/reference.html#pytest-mark-xfail
> 
> @pytest.mark.parametrize(argnames, argvalues): call a test function multiple 
> times passing in different arguments in turn. argvalues generally needs to be 
> a list of values if argnames specifies only one name or a list of tuples of 
> values if argnames specifies multiple names. Example: @parametrize('arg1', 
> [1,2]) would lead to two calls of the decorated test function, one with 
> arg1=1 and another with arg1=2.see 
> https://docs.pytest.org/en/stable/how-to/parametrize.html for more info and 
> examples.
> 
> @pytest.mark.usefixtures(fixturename1, fixturename2, ...): mark tests as 
> needing all of the specified fixtures. see 
> https://docs.pytest.org/en/stable/explanation/fixtures.html#usefixtures 
> 
> @pytest.mark.tryfirst: mark a hook implementation function such that the 
> plugin machinery will try to call it first/as early as possible. DEPRECATED, 
> use @pytest.hookimpl(tryfirst=True) instead.
> 
> @pytest.mark.trylast: mark a hook implementation function such that the 
> plugin machinery will try to call it last/as late as possible. DEPRECATED, 
> use @pytest.hookimpl(trylast=True) instead.
> 
> _____________________________ test_not_main_thread 
> _____________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_not_main_thread0')>
> 
>     def test_not_main_thread(testdir):
>         testdir.makepyfile(
>             """
>             import threading
>             import pytest_timeout
>     
>             current_timeout_setup = pytest_timeout.timeout_setup
>     
>             def new_timeout_setup(item):
>                 threading.Thread(
>                     target=current_timeout_setup, args=(item),
>                 ).join()
>     
>             pytest_timeout.timeout_setup = new_timeout_setup
>     
>             def test_x(): pass
>         """
>         )
>         result = testdir.runpytest("--timeout=1")
> >       result.stdout.fnmatch_lines(
>             ["timeout: 1.0s", "timeout method:*", "timeout func_only:*"]
>         )
> E       Failed: remains unmatched: 'timeout: 1.0s'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:506:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_not_main_thread0/runpytest-0 
> --timeout=1
>      in: /tmp/pytest-of-user42/pytest-9/test_not_main_thread0
> ----------------------------- Captured stderr call 
> -----------------------------
> ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> __main__.py: error: unrecognized arguments: --timeout=1
>   inifile: None
>   rootdir: /tmp/pytest-of-user42/pytest-9/test_not_main_thread0
> 
> ____________________________ test_plugin_interface 
> _____________________________
> 
> testdir = <Testdir 
> local('/tmp/pytest-of-user42/pytest-9/test_plugin_interface0')>
> 
>     def test_plugin_interface(testdir):
>         testdir.makeconftest(
>             """
>          import pytest
>     
>          @pytest.mark.tryfirst
>          def pytest_timeout_set_timer(item, settings):
>              print()
>              print("pytest_timeout_set_timer")
>              return True
>     
>          @pytest.mark.tryfirst
>          def pytest_timeout_cancel_timer(item):
>              print()
>              print("pytest_timeout_cancel_timer")
>              return True
>         """
>         )
>         testdir.makepyfile(
>             """
>          import pytest
>     
>          @pytest.mark.timeout(1)
>          def test_foo():
>              pass
>         """
>         )
>         result = testdir.runpytest("-s")
> >       result.stdout.fnmatch_lines(
>             [
>                 "pytest_timeout_set_timer",
>                 "pytest_timeout_cancel_timer",
>             ]
>         )
> E       Failed: nomatch: 'pytest_timeout_set_timer'
> E           and: '============================= test session starts 
> =============================='
> E           and: 'platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0'
> E           and: 'rootdir: 
> /tmp/pytest-of-user42/pytest-9/test_plugin_interface0'
> E           and: 'plugins: cov-4.1.0'
> E           and: 'collected 1 item'
> E           and: 'INTERNALERROR> Traceback (most recent call last):'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/_pytest/main.py", line 271, in wrap_session'
> E           and: 'INTERNALERROR>     session.exitstatus = doit(config, 
> session) or 0'
> E           and: 'INTERNALERROR>                          
> ^^^^^^^^^^^^^^^^^^^^^'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/_pytest/main.py", line 324, in _main'
> E           and: 'INTERNALERROR>     
> config.hook.pytest_collection(session=session)'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 493, in __call__'
> E           and: 'INTERNALERROR>     return self._hookexec(self.name, 
> self._hookimpls, kwargs, firstresult)'
> E           and: 'INTERNALERROR>            
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 115, in _hookexec'
> E           and: 'INTERNALERROR>     return self._inner_hookexec(hook_name, 
> methods, kwargs, firstresult)'
> E           and: 'INTERNALERROR>            
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 152, in _multicall'
> E           and: 'INTERNALERROR>     return outcome.get_result()'
> E           and: 'INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/pluggy/_result.py", line 114, in get_result'
> E           and: 'INTERNALERROR>     raise 
> exc.with_traceback(exc.__traceback__)'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 77, in _multicall'
> E           and: 'INTERNALERROR>     res = hook_impl.function(*args)'
> E           and: 'INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/_pytest/main.py", line 335, in 
> pytest_collection'
> E           and: 'INTERNALERROR>     session.perform_collect()'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/_pytest/main.py", line 677, in 
> perform_collect'
> E           and: 'INTERNALERROR>     
> self.config.pluginmanager.check_pending()'
> E           and: 'INTERNALERROR>   File 
> "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 370, in 
> check_pending'
> E           and: 'INTERNALERROR>     raise PluginValidationError('
> E           and: "INTERNALERROR> pluggy._manager.PluginValidationError: 
> unknown hook 'pytest_timeout_cancel_timer' in plugin <module 'conftest' from 
> '/tmp/pytest-of-user42/pytest-9/test_plugin_interface0/conftest.py'>"
> E           and: ''
> E           and: '============================= 3 warnings in 0.01s 
> =============================='
> E       remains unmatched: 'pytest_timeout_set_timer'
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build/test_pytest_timeout.py:539:
>  Failed
> ----------------------------- Captured stdout call 
> -----------------------------
> running: /usr/bin/python3.11 -mpytest 
> --basetemp=/tmp/pytest-of-user42/pytest-9/test_plugin_interface0/runpytest-0 
> -s
>      in: /tmp/pytest-of-user42/pytest-9/test_plugin_interface0
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /tmp/pytest-of-user42/pytest-9/test_plugin_interface0
> plugins: cov-4.1.0
> collected 1 item
> INTERNALERROR> Traceback (most recent call last):
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 
> 271, in wrap_session
> INTERNALERROR>     session.exitstatus = doit(config, session) or 0
> INTERNALERROR>                          ^^^^^^^^^^^^^^^^^^^^^
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 
> 324, in _main
> INTERNALERROR>     config.hook.pytest_collection(session=session)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 
> 493, in __call__
> INTERNALERROR>     return self._hookexec(self.name, self._hookimpls, kwargs, 
> firstresult)
> INTERNALERROR>            
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", 
> line 115, in _hookexec
> INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, 
> firstresult)
> INTERNALERROR>            
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", 
> line 152, in _multicall
> INTERNALERROR>     return outcome.get_result()
> INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_result.py", 
> line 114, in get_result
> INTERNALERROR>     raise exc.with_traceback(exc.__traceback__)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", 
> line 77, in _multicall
> INTERNALERROR>     res = hook_impl.function(*args)
> INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 
> 335, in pytest_collection
> INTERNALERROR>     session.perform_collect()
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 
> 677, in perform_collect
> INTERNALERROR>     self.config.pluginmanager.check_pending()
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", 
> line 370, in check_pending
> INTERNALERROR>     raise PluginValidationError(
> INTERNALERROR> pluggy._manager.PluginValidationError: unknown hook 
> 'pytest_timeout_cancel_timer' in plugin <module 'conftest' from 
> '/tmp/pytest-of-user42/pytest-9/test_plugin_interface0/conftest.py'>
> 
> ============================= 3 warnings in 0.01s 
> ==============================
> =========================== short test summary info 
> ============================
> XFAIL 
> test_pytest_timeout.py::test_suppresses_timeout_when_debugger_is_entered[ipdb-set_trace()]
>  - waiting on https://github.com/pytest-dev/pytest/pull/7207 to allow proper 
> testing
> XFAIL 
> test_pytest_timeout.py::test_suppresses_timeout_when_debugger_is_entered[pydevd-settrace(port=4678)]
>  - in need of way to setup pydevd server
> FAILED test_pytest_timeout.py::test_header - Failed: remains unmatched: 
> 'time...
> FAILED test_pytest_timeout.py::test_sigalrm - Failed: remains unmatched: 
> '*Fa...
> FAILED test_pytest_timeout.py::test_thread - Failed: nomatch: '*++ Timeout 
> ++*'
> FAILED test_pytest_timeout.py::test_cov - Failed: nomatch: '*++ Timeout ++*'
> FAILED test_pytest_timeout.py::test_timeout_env - assert <ExitCode.OK: 0> > 0
> FAILED test_pytest_timeout.py::test_fix_setup[function-thread] - 
> AssertionErr...
> FAILED test_pytest_timeout.py::test_fix_setup[class-thread] - 
> AssertionError:...
> FAILED test_pytest_timeout.py::test_fix_setup[module-thread] - 
> AssertionError...
> FAILED test_pytest_timeout.py::test_fix_setup[session-thread] - 
> AssertionErro...
> FAILED test_pytest_timeout.py::test_fix_setup_func_only - assert 
> <ExitCode.US...
> FAILED test_pytest_timeout.py::test_fix_finalizer[function-thread] - 
> Assertio...
> FAILED test_pytest_timeout.py::test_fix_finalizer[class-thread] - 
> AssertionEr...
> FAILED test_pytest_timeout.py::test_fix_finalizer[module-thread] - 
> AssertionE...
> FAILED test_pytest_timeout.py::test_fix_finalizer[session-thread] - 
> Assertion...
> FAILED test_pytest_timeout.py::test_fix_finalizer_func_only - assert 
> <ExitCod...
> FAILED test_pytest_timeout.py::test_timeout_mark_sigalrm - Failed: nomatch: 
> '...
> FAILED test_pytest_timeout.py::test_timeout_mark_timer - Failed: nomatch: 
> '*+...
> FAILED test_pytest_timeout.py::test_timeout_mark_non_int - Failed: nomatch: 
> '...
> FAILED test_pytest_timeout.py::test_timeout_mark_non_number - Failed: 
> nomatch...
> FAILED test_pytest_timeout.py::test_timeout_mark_args - Failed: nomatch: 
> '*Va...
> FAILED test_pytest_timeout.py::test_timeout_mark_method_nokw - Failed: 
> remain...
> FAILED test_pytest_timeout.py::test_timeout_mark_noargs - Failed: nomatch: 
> '*...
> FAILED test_pytest_timeout.py::test_ini_timeout - assert <ExitCode.OK: 0>
> FAILED test_pytest_timeout.py::test_timeout_marker_inheritance - assert 
> <Exit...
> FAILED test_pytest_timeout.py::test_marker_help - Failed: nomatch: 
> '@pytest.m...
> FAILED test_pytest_timeout.py::test_not_main_thread - Failed: remains 
> unmatch...
> FAILED test_pytest_timeout.py::test_plugin_interface - Failed: nomatch: 
> 'pyte...
> =================== 27 failed, 4 passed, 2 xfailed in 20.94s 
> ===================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-pytest-timeout/build; 
> python3.11 -m pytest 
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/09/25/python-pytest-timeout_2.1.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.


Reply via email to