Skip to content

Commit d0a072b

Browse files
authored
Fix clearing test output buffer (#15)
Temporarily set inhibit-read-only when clearing the buffer.
1 parent fc056fa commit d0a072b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python-pytest.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ With a prefix ARG, allow editing."
374374
(user-error "Aborting; pytest still running")))
375375
(when process
376376
(delete-process process))
377-
(erase-buffer)
377+
(let ((inhibit-read-only t))
378+
(erase-buffer))
378379
(unless (eq major-mode 'python-pytest-mode)
379380
(python-pytest-mode))
380381
(compilation-forget-errors)

0 commit comments

Comments
 (0)