ALT Linux Bugzilla
– Attachment 16610 Details for
Bug 51132
python3-module-pytest-timeout не проходит тесты
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
результат прохождения теста
results (text/plain), 48.50 KB, created by
Богдан Богуславский
on 2024-08-13 12:51:54 MSK
(
hide
)
Description:
результат прохождения теста
Filename:
MIME Type:
Creator:
Богдан Богуславский
Created:
2024-08-13 12:51:54 MSK
Size:
48.50 KB
patch
obsolete
>============================= test session starts ============================== >platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0 >rootdir: /home/test/pytest-timeout, configfile: tox.ini >plugins: remove-stale-bytecode-2.1, timeout-1.3.3 >collected 47 items > >test_pytest_timeout.py F.Fs....................FF..F...F....xxFxxFsFFF [100%] > >=================================== FAILURES =================================== >_________________________________ test_header __________________________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_header0')> > > def test_header(pytester): > pytester.makepyfile( > """ > def test_x(): pass > """ > ) > result = pytester.runpytest_subprocess("--timeout=1", "--session-timeout=2") >> result.stdout.fnmatch_lines( > [ > "timeout: 1.0s", > "timeout method:*", > "timeout func_only:*", > "session timeout: 2.0s", > ] > ) >E Failed: remains unmatched: 'timeout: 1.0s' > >/home/test/pytest-timeout/test_pytest_timeout.py:26: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_header0/runpytest-0 --timeout=1 --session-timeout=2 > in: /tmp/.private/test/pytest-of-test/pytest-1/test_header0 >----------------------------- Captured stderr call ----------------------------- >ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...] >__main__.py: error: unrecognized arguments: --session-timeout=2 > inifile: None > rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_header0 > >_________________________________ test_thread __________________________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_thread0')> > > def test_thread(pytester): > pytester.makepyfile( > """ > import time > > def test_foo(): > time.sleep(2) > """ > ) > result = pytester.runpytest_subprocess("--timeout=1", "--timeout-method=thread") >> result.stdout.fnmatch_lines( > [ > "*++ Timeout ++*", > "*~~ Stack of MainThread* ~~*", > "*File *, line *, in *", > "*++ Timeout ++*", > ] > ) >E Failed: nomatch: '*++ Timeout ++*' >E and: '============================= test session starts ==============================' >E and: 'platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0' >E and: 'rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_thread0' >E and: 'plugins: remove-stale-bytecode-2.1, timeout-1.3.3' >E and: 'timeout: 1.0s' >E and: 'timeout method: thread' >E and: 'timeout func_only: False' >E and: 'collected 1 item' >E and: '' >E and: 'test_thread.py ' >E remains unmatched: '*++ Timeout ++*' > >/home/test/pytest-timeout/test_pytest_timeout.py:60: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_thread0/runpytest-0 --timeout=1 --timeout-method=thread > in: /tmp/.private/test/pytest-of-test/pytest-1/test_thread0 >============================= test session starts ============================== >platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0 >rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_thread0 >plugins: remove-stale-bytecode-2.1, timeout-1.3.3 >timeout: 1.0s >timeout method: thread >timeout func_only: False >collected 1 item > >test_thread.py >----------------------------- Captured stderr call ----------------------------- > >+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ > >~~~~~~~~~~~~~~~~~~~~ Stack of MainThread (140289785844416) ~~~~~~~~~~~~~~~~~~~~~ > File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main > return _run_code(code, main_globals, None, > File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code > exec(code, run_globals) > File "/usr/lib/python3/site-packages/pytest/__main__.py", line 5, in <module> > raise SystemExit(pytest.console_main()) > File "/usr/lib/python3/site-packages/_pytest/config/__init__.py", line 188, in console_main > code = main() > File "/usr/lib/python3/site-packages/_pytest/config/__init__.py", line 165, in main > ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 315, in pytest_cmdline_main > return wrap_session(config, _main) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 268, in wrap_session > session.exitstatus = doit(config, session) or 0 > File "/usr/lib/python3/site-packages/_pytest/main.py", line 322, in _main > config.hook.pytest_runtestloop(session=session) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 347, in pytest_runtestloop > item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol > runtestprotocol(item, nextitem=nextitem) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 132, in runtestprotocol > reports.append(call_and_report(item, "call", log)) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 221, in call_and_report > call = call_runtest_hook(item, when, **kwds) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 260, in call_runtest_hook > return CallInfo.from_call( > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 340, in from_call > result: Optional[TResult] = func() > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 261, in <lambda> > lambda: ihook(item=item, **kwds), when=when, reraise=reraise > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 168, in pytest_runtest_call > item.runtest() > File "/usr/lib/python3/site-packages/_pytest/python.py", line 1718, in runtest > self.ihook.pytest_pyfunc_call(pyfuncitem=self) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/python.py", line 192, in pytest_pyfunc_call > result = testfunction(**testargs) > File "/tmp/.private/test/pytest-of-test/pytest-1/test_thread0/test_thread.py", line 4, in test_foo > time.sleep(2) > >+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ >___________________________ test_timeout_mark_timer ____________________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_timer0')> > > def test_timeout_mark_timer(pytester): > pytester.makepyfile( > """ > import time, pytest > > @pytest.mark.timeout(1) > def test_foo(): > time.sleep(2) > """ > ) > result = pytester.runpytest_subprocess("--timeout-method=thread") >> result.stdout.fnmatch_lines(["*++ Timeout ++*"]) >E Failed: nomatch: '*++ Timeout ++*' >E and: '============================= test session starts ==============================' >E and: 'platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0' >E and: 'rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_timer0' >E and: 'plugins: remove-stale-bytecode-2.1, timeout-1.3.3' >E and: 'collected 1 item' >E and: '' >E and: 'test_timeout_mark_timer.py ' >E remains unmatched: '*++ Timeout ++*' > >/home/test/pytest-timeout/test_pytest_timeout.py:256: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_timer0/runpytest-0 --timeout-method=thread > in: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_timer0 >============================= test session starts ============================== >platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0 >rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_timer0 >plugins: remove-stale-bytecode-2.1, timeout-1.3.3 >collected 1 item > >test_timeout_mark_timer.py >----------------------------- Captured stderr call ----------------------------- > >+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ > >~~~~~~~~~~~~~~~~~~~~ Stack of MainThread (140136656478912) ~~~~~~~~~~~~~~~~~~~~~ > File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main > return _run_code(code, main_globals, None, > File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code > exec(code, run_globals) > File "/usr/lib/python3/site-packages/pytest/__main__.py", line 5, in <module> > raise SystemExit(pytest.console_main()) > File "/usr/lib/python3/site-packages/_pytest/config/__init__.py", line 188, in console_main > code = main() > File "/usr/lib/python3/site-packages/_pytest/config/__init__.py", line 165, in main > ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 315, in pytest_cmdline_main > return wrap_session(config, _main) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 268, in wrap_session > session.exitstatus = doit(config, session) or 0 > File "/usr/lib/python3/site-packages/_pytest/main.py", line 322, in _main > config.hook.pytest_runtestloop(session=session) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 347, in pytest_runtestloop > item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol > runtestprotocol(item, nextitem=nextitem) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 132, in runtestprotocol > reports.append(call_and_report(item, "call", log)) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 221, in call_and_report > call = call_runtest_hook(item, when, **kwds) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 260, in call_runtest_hook > return CallInfo.from_call( > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 340, in from_call > result: Optional[TResult] = func() > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 261, in <lambda> > lambda: ihook(item=item, **kwds), when=when, reraise=reraise > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 168, in pytest_runtest_call > item.runtest() > File "/usr/lib/python3/site-packages/_pytest/python.py", line 1718, in runtest > self.ihook.pytest_pyfunc_call(pyfuncitem=self) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/python.py", line 192, in pytest_pyfunc_call > result = testfunction(**testargs) > File "/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_timer0/test_timeout_mark_timer.py", line 5, in test_foo > time.sleep(2) > >+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ >__________________________ test_timeout_mark_non_int ___________________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_non_int0')> > > def test_timeout_mark_non_int(pytester): > pytester.makepyfile( > """ > import time, pytest > > @pytest.mark.timeout(0.01) > def test_foo(): > time.sleep(1) > """ > ) > result = pytester.runpytest_subprocess("--timeout-method=thread") >> result.stdout.fnmatch_lines(["*++ Timeout ++*"]) >E Failed: nomatch: '*++ Timeout ++*' >E and: '============================= test session starts ==============================' >E and: 'platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0' >E and: 'rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_non_int0' >E and: 'plugins: remove-stale-bytecode-2.1, timeout-1.3.3' >E and: 'collected 1 item' >E and: '' >E and: 'test_timeout_mark_non_int.py ' >E remains unmatched: '*++ Timeout ++*' > >/home/test/pytest-timeout/test_pytest_timeout.py:270: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_non_int0/runpytest-0 --timeout-method=thread > in: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_non_int0 >============================= test session starts ============================== >platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0 >rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_non_int0 >plugins: remove-stale-bytecode-2.1, timeout-1.3.3 >collected 1 item > >test_timeout_mark_non_int.py >----------------------------- Captured stderr call ----------------------------- > >+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ > >~~~~~~~~~~~~~~~~~~~~ Stack of MainThread (139692450980544) ~~~~~~~~~~~~~~~~~~~~~ > File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main > return _run_code(code, main_globals, None, > File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code > exec(code, run_globals) > File "/usr/lib/python3/site-packages/pytest/__main__.py", line 5, in <module> > raise SystemExit(pytest.console_main()) > File "/usr/lib/python3/site-packages/_pytest/config/__init__.py", line 188, in console_main > code = main() > File "/usr/lib/python3/site-packages/_pytest/config/__init__.py", line 165, in main > ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 315, in pytest_cmdline_main > return wrap_session(config, _main) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 268, in wrap_session > session.exitstatus = doit(config, session) or 0 > File "/usr/lib/python3/site-packages/_pytest/main.py", line 322, in _main > config.hook.pytest_runtestloop(session=session) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 347, in pytest_runtestloop > item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol > runtestprotocol(item, nextitem=nextitem) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 132, in runtestprotocol > reports.append(call_and_report(item, "call", log)) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 221, in call_and_report > call = call_runtest_hook(item, when, **kwds) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 260, in call_runtest_hook > return CallInfo.from_call( > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 340, in from_call > result: Optional[TResult] = func() > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 261, in <lambda> > lambda: ihook(item=item, **kwds), when=when, reraise=reraise > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 168, in pytest_runtest_call > item.runtest() > File "/usr/lib/python3/site-packages/_pytest/python.py", line 1718, in runtest > self.ihook.pytest_pyfunc_call(pyfuncitem=self) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/python.py", line 192, in pytest_pyfunc_call > result = testfunction(**testargs) > File "/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_non_int0/test_timeout_mark_non_int.py", line 5, in test_foo > time.sleep(1) > >+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ >________________________ test_timeout_mark_method_nokw _________________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_method_nokw0')> > > def test_timeout_mark_method_nokw(pytester): > pytester.makepyfile( > """ > import time, pytest > > @pytest.mark.timeout(1, 'thread') > def test_foo(): > time.sleep(2) > """ > ) > result = pytester.runpytest_subprocess() >> result.stdout.fnmatch_lines(["*+ Timeout +*"]) >E Failed: nomatch: '*+ Timeout +*' >E and: '============================= test session starts ==============================' >E and: 'platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0' >E and: 'rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_method_nokw0' >E and: 'plugins: remove-stale-bytecode-2.1, timeout-1.3.3' >E and: 'collected 1 item' >E and: '' >E and: 'test_timeout_mark_method_nokw.py ' >E remains unmatched: '*+ Timeout +*' > >/home/test/pytest-timeout/test_pytest_timeout.py:312: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_method_nokw0/runpytest-0 > in: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_method_nokw0 >============================= test session starts ============================== >platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0 >rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_method_nokw0 >plugins: remove-stale-bytecode-2.1, timeout-1.3.3 >collected 1 item > >test_timeout_mark_method_nokw.py >----------------------------- Captured stderr call ----------------------------- > >+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ > >~~~~~~~~~~~~~~~~~~~~ Stack of MainThread (140005723562688) ~~~~~~~~~~~~~~~~~~~~~ > File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main > return _run_code(code, main_globals, None, > File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code > exec(code, run_globals) > File "/usr/lib/python3/site-packages/pytest/__main__.py", line 5, in <module> > raise SystemExit(pytest.console_main()) > File "/usr/lib/python3/site-packages/_pytest/config/__init__.py", line 188, in console_main > code = main() > File "/usr/lib/python3/site-packages/_pytest/config/__init__.py", line 165, in main > ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 315, in pytest_cmdline_main > return wrap_session(config, _main) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 268, in wrap_session > session.exitstatus = doit(config, session) or 0 > File "/usr/lib/python3/site-packages/_pytest/main.py", line 322, in _main > config.hook.pytest_runtestloop(session=session) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/main.py", line 347, in pytest_runtestloop > item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol > runtestprotocol(item, nextitem=nextitem) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 132, in runtestprotocol > reports.append(call_and_report(item, "call", log)) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 221, in call_and_report > call = call_runtest_hook(item, when, **kwds) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 260, in call_runtest_hook > return CallInfo.from_call( > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 340, in from_call > result: Optional[TResult] = func() > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 261, in <lambda> > lambda: ihook(item=item, **kwds), when=when, reraise=reraise > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/runner.py", line 168, in pytest_runtest_call > item.runtest() > File "/usr/lib/python3/site-packages/_pytest/python.py", line 1718, in runtest > self.ihook.pytest_pyfunc_call(pyfuncitem=self) > File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) > File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall > res = hook_impl.function(*args) > File "/usr/lib/python3/site-packages/_pytest/python.py", line 192, in pytest_pyfunc_call > result = testfunction(**testargs) > File "/tmp/.private/test/pytest-of-test/pytest-1/test_timeout_mark_method_nokw0/test_timeout_mark_method_nokw.py", line 5, in test_foo > time.sleep(2) > >+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ >__________________ test_ini_timeout_func_only_marker_override __________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_ini_timeout_func_only_marker_override0')> > > def test_ini_timeout_func_only_marker_override(pytester): > pytester.makepyfile( > """ > import time, pytest > > @pytest.fixture > def slow(): > time.sleep(2) > @pytest.mark.timeout(1.5) > def test_foo(slow): > pass > """ > ) > pytester.makeini( > """ > [pytest] > timeout = 1 > timeout_func_only = true > """ > ) > result = pytester.runpytest_subprocess() >> assert result.ret == 0 >E assert <ExitCode.TESTS_FAILED: 1> == 0 >E + where <ExitCode.TESTS_FAILED: 1> = <RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=23 len(stderr.lines)=0 duration=1.81s>.ret > >/home/test/pytest-timeout/test_pytest_timeout.py:392: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_ini_timeout_func_only_marker_override0/runpytest-0 > in: /tmp/.private/test/pytest-of-test/pytest-1/test_ini_timeout_func_only_marker_override0 >============================= test session starts ============================== >platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0 >rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_ini_timeout_func_only_marker_override0, configfile: tox.ini >plugins: remove-stale-bytecode-2.1, timeout-1.3.3 >timeout: 1.0s >timeout method: signal >timeout func_only: True >collected 1 item > >test_ini_timeout_func_only_marker_override.py E [100%] > >==================================== ERRORS ==================================== >__________________________ ERROR at setup of test_foo __________________________ > > @pytest.fixture > def slow(): >> time.sleep(2) >E Failed: Timeout >1.5s > >test_ini_timeout_func_only_marker_override.py:5: Failed >=========================== short test summary info ============================ >ERROR test_ini_timeout_func_only_marker_override.py::test_foo - Failed: Timeo... >=============================== 1 error in 1.53s =============================== >____________ test_disable_debugger_detection_flag[pdb-set_trace()] _____________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_disable_debugger_detection_flag0')> >debugging_module = 'pdb', debugging_set_trace = 'set_trace()' > > @pytest.mark.parametrize( > ["debugging_module", "debugging_set_trace"], > [ > ("pdb", "set_trace()"), > pytest.param( > "ipdb", > "set_trace()", > marks=pytest.mark.xfail( > reason="waiting on https://github.com/pytest-dev/pytest/pull/7207" > " to allow proper testing" > ), > ), > pytest.param( > "pydevd", > "settrace(port=4678)", > marks=pytest.mark.xfail(reason="in need of way to setup pydevd server"), > ), > ], > ) > @have_spawn > def test_disable_debugger_detection_flag( > pytester, debugging_module, debugging_set_trace > ): > p1 = pytester.makepyfile( > """ > import pytest, {debugging_module} > > @pytest.mark.timeout(1) > def test_foo(): > {debugging_module}.{debugging_set_trace} > """.format( > debugging_module=debugging_module, debugging_set_trace=debugging_set_trace > ) > ) > child = pytester.spawn_pytest(f"{p1} --timeout-disable-debugger-detection") >> child.expect("test_foo") > >/home/test/pytest-timeout/test_pytest_timeout.py:522: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3/site-packages/pexpect/spawnbase.py:343: in expect > return self.expect_list(compiled_pattern_list, >/usr/lib/python3/site-packages/pexpect/spawnbase.py:372: in expect_list > return exp.expect_loop(timeout) >/usr/lib/python3/site-packages/pexpect/expect.py:179: in expect_loop > return self.eof(e) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <pexpect.expect.Expecter object at 0x7f4d163f5c40> >err = EOF('End Of File (EOF). Exception style platform.') > > def eof(self, err=None): > spawn = self.spawn > > spawn.before = spawn._before.getvalue() > spawn._buffer = spawn.buffer_type() > spawn._before = spawn.buffer_type() > spawn.after = EOF > index = self.searcher.eof_index > if index >= 0: > spawn.match = EOF > spawn.match_index = index > return index > else: > spawn.match = None > spawn.match_index = None > msg = str(spawn) > msg += '\nsearcher: %s' % self.searcher > if err is not None: > msg = str(err) + '\n' + msg > > exc = EOF(msg) > exc.__cause__ = None # in Python 3.x we can use "raise exc from None" >> raise exc >E pexpect.exceptions.EOF: End Of File (EOF). Exception style platform. >E <pexpect.pty_spawn.spawn object at 0x7f4d163f5af0> >E command: /usr/bin/python3 >E args: ['/usr/bin/python3', '-mpytest', '--basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_disable_debugger_detection_flag0/temp-pexpect', '/tmp/.private/test/pytest-of-test/pytest-1/test_disable_debugger_detection_flag0/test_disable_debugger_detection_flag.py', '--timeout-disable-debugger-detection'] >E buffer (last 100 chars): b'' >E before (last 100 chars): b'one\r\n rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_disable_debugger_detection_flag0\r\n\r\n' >E after: <class 'pexpect.exceptions.EOF'> >E match: None >E match_index: None >E exitstatus: None >E flag_eof: True >E pid: 3136 >E child_fd: 16 >E closed: False >E timeout: 30.0 >E delimiter: <class 'pexpect.exceptions.EOF'> >E logfile: <_io.BufferedWriter name='/tmp/.private/test/pytest-of-test/pytest-1/test_disable_debugger_detection_flag0/spawn.out'> >E logfile_read: None >E logfile_send: None >E maxread: 2000 >E ignorecase: False >E searchwindowsize: None >E delaybeforesend: 0.05 >E delayafterclose: 0.1 >E delayafterterminate: 0.1 >E searcher: searcher_re: >E 0: re.compile(b'test_foo') > >/usr/lib/python3/site-packages/pexpect/expect.py:122: EOF >______________________________ test_is_debugging _______________________________ > >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4d163c4a00> > > def test_is_debugging(monkeypatch): > import pytest_timeout > >> assert not pytest_timeout.is_debugging() >E AttributeError: module 'pytest_timeout' has no attribute 'is_debugging' > >test_pytest_timeout.py:534: AttributeError >____________________________ test_plugin_interface _____________________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_plugin_interface0')> > > def test_plugin_interface(pytester): > pytester.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 > """ > ) > pytester.makepyfile( > """ > import pytest > > @pytest.mark.timeout(1) > def test_foo(): > pass > """ > ) > result = pytester.runpytest_subprocess("-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.9.18, pytest-7.0.1, pluggy-1.0.0' >E and: 'rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_plugin_interface0' >E and: 'plugins: remove-stale-bytecode-2.1, timeout-1.3.3' >E and: 'collected 1 item' >E and: 'INTERNALERROR> Traceback (most recent call last):' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/_pytest/main.py", line 268, in wrap_session' >E and: 'INTERNALERROR> session.exitstatus = doit(config, session) or 0' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/_pytest/main.py", line 321, in _main' >E and: 'INTERNALERROR> config.hook.pytest_collection(session=session)' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__' >E and: 'INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec' >E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 60, in _multicall' >E and: 'INTERNALERROR> return outcome.get_result()' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_result.py", line 60, in get_result' >E and: 'INTERNALERROR> raise ex[1].with_traceback(ex[2])' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall' >E and: 'INTERNALERROR> res = hook_impl.function(*args)' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/_pytest/main.py", line 332, in pytest_collection' >E and: 'INTERNALERROR> session.perform_collect()' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/_pytest/main.py", line 659, in perform_collect' >E and: 'INTERNALERROR> self.config.pluginmanager.check_pending()' >E and: 'INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 262, 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/.private/test/pytest-of-test/pytest-1/test_plugin_interface0/conftest.py'>" >E and: '' >E and: '============================ no tests ran in 0.01s =============================' >E remains unmatched: 'pytest_timeout_set_timer' > >/home/test/pytest-timeout/test_pytest_timeout.py:605: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_plugin_interface0/runpytest-0 -s > in: /tmp/.private/test/pytest-of-test/pytest-1/test_plugin_interface0 >============================= test session starts ============================== >platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0 >rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_plugin_interface0 >plugins: remove-stale-bytecode-2.1, timeout-1.3.3 >collected 1 item >INTERNALERROR> Traceback (most recent call last): >INTERNALERROR> File "/usr/lib/python3/site-packages/_pytest/main.py", line 268, in wrap_session >INTERNALERROR> session.exitstatus = doit(config, session) or 0 >INTERNALERROR> File "/usr/lib/python3/site-packages/_pytest/main.py", line 321, in _main >INTERNALERROR> config.hook.pytest_collection(session=session) >INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_hooks.py", line 265, in __call__ >INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) >INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 80, in _hookexec >INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) >INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 60, in _multicall >INTERNALERROR> return outcome.get_result() >INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_result.py", line 60, in get_result >INTERNALERROR> raise ex[1].with_traceback(ex[2]) >INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_callers.py", line 39, in _multicall >INTERNALERROR> res = hook_impl.function(*args) >INTERNALERROR> File "/usr/lib/python3/site-packages/_pytest/main.py", line 332, in pytest_collection >INTERNALERROR> session.perform_collect() >INTERNALERROR> File "/usr/lib/python3/site-packages/_pytest/main.py", line 659, in perform_collect >INTERNALERROR> self.config.pluginmanager.check_pending() >INTERNALERROR> File "/usr/lib/python3/site-packages/pluggy/_manager.py", line 262, in check_pending >INTERNALERROR> raise PluginValidationError( >INTERNALERROR> pluggy._manager.PluginValidationError: unknown hook 'pytest_timeout_cancel_timer' in plugin <module 'conftest' from '/tmp/.private/test/pytest-of-test/pytest-1/test_plugin_interface0/conftest.py'> > >============================ no tests ran in 0.01s ============================= >_____________________________ test_session_timeout _____________________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_session_timeout0')> > > def test_session_timeout(pytester): > # This is designed to timeout during hte first test to ensure > # - the first test still runs to completion > # - the second test is not started > pytester.makepyfile( > """ > import time, pytest > > @pytest.fixture() > def slow_setup_and_teardown(): > time.sleep(1) > yield > time.sleep(1) > > def test_one(slow_setup_and_teardown): > time.sleep(1) > > def test_two(slow_setup_and_teardown): > time.sleep(1) > """ > ) > result = pytester.runpytest_subprocess("--session-timeout", "2") >> result.stdout.fnmatch_lines(["*!! session-timeout: 2.0 sec exceeded !!!*"]) >E Failed: remains unmatched: '*!! session-timeout: 2.0 sec exceeded !!!*' > >/home/test/pytest-timeout/test_pytest_timeout.py:635: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_session_timeout0/runpytest-0 --session-timeout 2 > in: /tmp/.private/test/pytest-of-test/pytest-1/test_session_timeout0 >----------------------------- Captured stderr call ----------------------------- >ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...] >__main__.py: error: unrecognized arguments: --session-timeout > inifile: None > rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_session_timeout0 > >___________________________ test_ini_session_timeout ___________________________ > >pytester = <Pytester PosixPath('/tmp/.private/test/pytest-of-test/pytest-1/test_ini_session_timeout0')> > > def test_ini_session_timeout(pytester): > pytester.makepyfile( > """ > import time > > def test_one(): > time.sleep(2) > > def test_two(): > time.sleep(2) > """ > ) > pytester.makeini( > """ > [pytest] > session_timeout = 1 > """ > ) > result = pytester.runpytest_subprocess() >> result.stdout.fnmatch_lines(["*!! session-timeout: 1.0 sec exceeded !!!*"]) >E Failed: nomatch: '*!! session-timeout: 1.0 sec exceeded !!!*' >E and: '============================= test session starts ==============================' >E and: 'platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0' >E and: 'rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_ini_session_timeout0, configfile: tox.ini' >E and: 'plugins: remove-stale-bytecode-2.1, timeout-1.3.3' >E and: 'collected 2 items' >E and: '' >E and: 'test_ini_session_timeout.py .. [100%]' >E and: '' >E and: '=============================== warnings summary ===============================' >E and: '../../../../../../usr/lib/python3/site-packages/_pytest/config/__init__.py:1249' >E and: ' /usr/lib/python3/site-packages/_pytest/config/__init__.py:1249: PytestConfigWarning: Unknown config option: session_timeout' >E and: ' ' >E and: ' self._warn_or_fail_if_strict(f"Unknown config option: {key}\\n")' >E and: '' >E and: '-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html' >E and: '========================= 2 passed, 1 warning in 4.01s =========================' >E remains unmatched: '*!! session-timeout: 1.0 sec exceeded !!!*' > >/home/test/pytest-timeout/test_pytest_timeout.py:659: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python3 -mpytest --basetemp=/tmp/.private/test/pytest-of-test/pytest-1/test_ini_session_timeout0/runpytest-0 > in: /tmp/.private/test/pytest-of-test/pytest-1/test_ini_session_timeout0 >============================= test session starts ============================== >platform linux -- Python 3.9.18, pytest-7.0.1, pluggy-1.0.0 >rootdir: /tmp/.private/test/pytest-of-test/pytest-1/test_ini_session_timeout0, configfile: tox.ini >plugins: remove-stale-bytecode-2.1, timeout-1.3.3 >collected 2 items > >test_ini_session_timeout.py .. [100%] > >=============================== warnings summary =============================== >../../../../../../usr/lib/python3/site-packages/_pytest/config/__init__.py:1249 > /usr/lib/python3/site-packages/_pytest/config/__init__.py:1249: PytestConfigWarning: Unknown config option: session_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 >========================= 2 passed, 1 warning in 4.01s ========================= >=========================== short test summary info ============================ >SKIPPED [1] test_pytest_timeout.py:76: could not import 'pytest_cov': No module named 'pytest_cov' >SKIPPED [1] test_pytest_timeout.py:553: The 'pytest_timeout.timeout_setup' function no longer exists >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 >XFAIL test_pytest_timeout.py::test_disable_debugger_detection_flag[ipdb-set_trace()] > waiting on https://github.com/pytest-dev/pytest/pull/7207 to allow proper testing >XFAIL test_pytest_timeout.py::test_disable_debugger_detection_flag[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_thread - Failed: nomatch: '*++ Timeout ++*' >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_method_nokw - Failed: nomatc... >FAILED test_pytest_timeout.py::test_ini_timeout_func_only_marker_override - a... >FAILED test_pytest_timeout.py::test_disable_debugger_detection_flag[pdb-set_trace()] >FAILED test_pytest_timeout.py::test_is_debugging - AttributeError: module 'py... >FAILED test_pytest_timeout.py::test_plugin_interface - Failed: nomatch: 'pyte... >FAILED test_pytest_timeout.py::test_session_timeout - Failed: remains unmatch... >FAILED test_pytest_timeout.py::test_ini_session_timeout - Failed: nomatch: '*... >============= 11 failed, 30 passed, 2 skipped, 4 xfailed in 47.79s =============
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 51132
:
16610
|
16611