MCPcopy Index your code
hub / github.com/pathwaycom/pathway / _assert_error_trace

Function _assert_error_trace

python/pathway/tests/test_error_messages.py:221–228  ·  view source on GitHub ↗
(error_type: type, *, match: str | None = None)

Source from the content-addressed store, hash-verified

219
220@contextlib.contextmanager
221def _assert_error_trace(error_type: type, *, match: str | None = None):
222 file_name = os.path.abspath(__file__)
223 with pytest.raises(error_type, match=match) as e:
224 yield e
225 assert re.match(
226 rf"Occurred here:\n Line: .* # cause\n File: {re.escape(file_name)}:\d+$",
227 e.value._pathway_trace_note,
228 )
229
230
231def test_traceback_expression():

Callers 15

test_select_argsFunction · 0.85
test_reduce_argsFunction · 0.85
test_groupby_extrakwargsFunction · 0.85
test_windowby_extraargsFunction · 0.85
test_join_argsFunction · 0.85
test_session_simpleFunction · 0.85
test_traceback_iterateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected