Suppress warning on exit by properly closing pydevd socket
#1826
+7
−0
Azure Pipelines / debugpy-test
failed
Feb 5, 2025 in 43m 42s
Build #20250205.1 had test failures
Details
- Failed: 2 (0.01%)
- Passed: 16,179 (82.35%)
- Other: 3,466 (17.64%)
- Total: 19,647
Annotations
Check failure on line 1797 in Build log
azure-pipelines / debugpy-test
Build log #L1797
PowerShell exited with code '1'.
Check failure on line 154 in Build log
azure-pipelines / debugpy-test
Build log #L154
PowerShell exited with code '1'.
Check failure on line 1 in test_systemexit[nan-zero-uncaught-raised-attach_listen(api)-program]
azure-pipelines / debugpy-test
test_systemexit[nan-zero-uncaught-raised-attach_listen(api)-program]
failed on teardown with "KeyError: <_pytest.stash.StashKey object at 0x00000250A8C8D960>"
Raw output
cls = <class '_pytest.runner.CallInfo'>
func = <function call_and_report.<locals>.<lambda> at 0x00000250ABFF3B00>
when = 'teardown'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
@classmethod
def from_call(
cls,
func: Callable[[], TResult],
when: Literal["collect", "setup", "call", "teardown"],
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None,
) -> CallInfo[TResult]:
"""Call func, wrapping the result in a CallInfo.
:param func:
The function to call. Called without arguments.
:type func: Callable[[], _pytest.runner.TResult]
:param when:
The phase in which the function is called.
:param reraise:
Exception or exceptions that shall propagate if raised by the
function, instead of being wrapped in the CallInfo.
"""
excinfo = None
start = timing.time()
precise_start = timing.perf_counter()
try:
> result: TResult | None = func()
.tox\py312\Lib\site-packages\_pytest\runner.py:341:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\py312\Lib\site-packages\_pytest\runner.py:242: in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
.tox\py312\Lib\site-packages\pluggy\_hooks.py:513: in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
.tox\py312\Lib\site-packages\pluggy\_manager.py:120: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
.tox\py312\Lib\site-packages\_pytest\threadexception.py:97: in pytest_runtest_teardown
yield from thread_exception_runtest_hook()
.tox\py312\Lib\site-packages\_pytest\threadexception.py:68: in thread_exception_runtest_hook
yield
.tox\py312\Lib\site-packages\_pytest\unraisableexception.py:100: in pytest_runtest_teardown
yield from unraisable_exception_runtest_hook()
.tox\py312\Lib\site-packages\_pytest\unraisableexception.py:70: in unraisable_exception_runtest_hook
yield
.tox\py312\Lib\site-packages\_pytest\logging.py:853: in pytest_runtest_teardown
yield from self._runtest_for(item, "teardown")
.tox\py312\Lib\site-packages\_pytest\logging.py:829: in _runtest_for
yield
.tox\py312\Lib\site-packages\_pytest\capture.py:885: in pytest_runtest_teardown
return (yield)
.tox\py312\Lib\site-packages\_pytest\runner.py:189: in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
.tox\py312\Lib\site-packages\_pytest\runner.py:557: in teardown_exact
raise exceptions[0]
.tox\py312\Lib\site-packages\_pytest\runner.py:546: in teardown_exact
fin()
.tox\py312\Lib\site-packages\_pytest\fixtures.py:1032: in finish
raise exceptions[0]
.tox\py312\Lib\site-packages\_pytest\fixtures.py:1021: in finish
fin()
.tox\py312\Lib\site-packages\_pytest\fixtures.py:907: in _teardown_yield_fixture
next(it)
.tox\py312\Lib\site-packages\_pytest\tmpdir.py:271: in tmp_path
result_dict = request.node.stash[tmppath_result_key]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.stash.Stash object at 0x00000250ABC25840>
key = <_pytest.stash.StashKey object at 0x00000250A8C8D960>
def __getitem__(self, key: StashKey[T]) -> T:
"""Get the value for key.
Raises ``KeyError`` if the key wasn't set before.
"""
> return cast(T, self._storage[key])
E KeyError: <_pytest.stash.StashKey object at 0x00000250A8C8D960>
.tox\py312\Lib\site-packages\_pytest\stash.py:84: KeyError
Check failure on line 1 in test_invalid_breakpoints[program-launch]
azure-pipelines / debugpy-test
test_invalid_breakpoints[program-launch]
failed on setup with "worker 'gw5' crashed while running 'tests/debugpy/test_breakpoints.py::test_invalid_breakpoints[program-launch]'"
Raw output
worker 'gw5' crashed while running 'tests/debugpy/test_breakpoints.py::test_invalid_breakpoints[program-launch]'
Loading