From d642538d7bfb0bcc5ac30db4878f8ce499eda0e4 Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Mon, 14 Aug 2023 13:21:34 -0700 Subject: [PATCH] Don't assume column number to be 1, since this is no longer correct in Python 3.11. --- tests/patterns/dap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/patterns/dap.py b/tests/patterns/dap.py index 1adb381d..21a0acaf 100644 --- a/tests/patterns/dap.py +++ b/tests/patterns/dap.py @@ -26,7 +26,7 @@ def source(path, **kwargs): return some.dict.containing(d) -def frame(source, line, **kwargs): +def frame(source, line, column=some.int, **kwargs): """Matches DAP Frame objects. If source is py.path.local, it's automatically wrapped with some.dap.source(). @@ -50,6 +50,6 @@ def frame(source, line, **kwargs): ), "source must be some.dap.source() to use line markers in some.dap.frame()" line = code.get_marked_line_numbers(path.path)[line] - d = {"id": some.dap.id, "source": source, "line": line, "column": 1} + d = {"id": some.dap.id, "source": source, "line": line, "column": column} d.update(kwargs) return some.dict.containing(d)