diff --git a/python-pytest.el b/python-pytest.el index 8a6ee3b..28700d1 100644 --- a/python-pytest.el +++ b/python-pytest.el @@ -357,7 +357,8 @@ With a prefix ARG, allow editing." (user-error "Aborting; pytest still running"))) (when process (delete-process process)) - (erase-buffer) + (let ((inhibit-read-only t)) + (erase-buffer)) (unless (eq major-mode 'python-pytest-mode) (python-pytest-mode)) (compilation-forget-errors)