Skip to content

Commit 68338db

Browse files
committed
dap-python: fix test at point
Specify a proper :program, containing the `buffer-file-name' also, meaning that debug-test-at-point should now work.
1 parent 9654177 commit 68338db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dap-python.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ strings, for the sake of launch.json feature parity."
240240
(defun dap-python--populate-test-at-point (conf)
241241
"Populate CONF with the required arguments."
242242
(if-let ((test (dap-python--test-at-point)))
243-
(plist-put conf :program test)
243+
(plist-put conf :program (concat (buffer-file-name) test))
244244
(user-error "`dap-python': no test at point"))
245245
(plist-put conf :cwd (lsp-workspace-root))
246246

0 commit comments

Comments
 (0)