MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_codepath_Queue_example

Function test_codepath_Queue_example

testing/code/test_excinfo.py:395–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393
394
395def test_codepath_Queue_example() -> None:
396 try:
397 queue.Queue().get(timeout=0.001)
398 except queue.Empty:
399 excinfo = _pytest._code.ExceptionInfo.from_current()
400 entry = excinfo.traceback[-1]
401 path = entry.path
402 assert isinstance(path, Path)
403 assert path.name.lower() == "queue.py"
404 assert path.exists()
405
406
407def test_match_succeeds():

Callers

nothing calls this directly

Calls 2

from_currentMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected