From 09988bf012a2d9f6d26d4882f92ecd8fa8a628db Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Fri, 1 Mar 2019 17:48:58 -0800 Subject: [PATCH] Ensure that stopOnEntry test checks path (#1190) --- tests/func/test_start_stop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/func/test_start_stop.py b/tests/func/test_start_stop.py index df9d96e1..241a819a 100644 --- a/tests/func/test_start_stop.py +++ b/tests/func/test_start_stop.py @@ -8,7 +8,7 @@ import platform import pytest import sys -from tests.helpers.pattern import ANY +from tests.helpers.pattern import ANY, Path from tests.helpers.session import DebugSession from tests.helpers.timeline import Event @@ -36,6 +36,7 @@ def test_break_on_entry(pyfile, run_as, start_method): thread_stopped, resp_stacktrace, tid, _ = session.wait_for_thread_stopped() frames = resp_stacktrace.body['stackFrames'] assert frames[0]['line'] == 1 + assert frames[0]['source']['path'] == Path(code_to_debug) session.send_request('continue').wait_for_response(freeze=False) session.wait_for_termination()