summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-python.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/init-python.el b/lisp/init-python.el
index d2f15b7..5ab562e 100644
--- a/lisp/init-python.el
+++ b/lisp/init-python.el
@@ -20,10 +20,9 @@ Unless a prefix argument ARG is given, py.test is also imported."
(test-file (concat "test_" py-file)))
(find-file-other-window test-file)
(unless (file-exists-p test-file)
- (with-current-buffer
- (insert (format "import %s\n" (file-name-sans-extension py-file)))
- (unless arg
- (insert "import pytest\n"))))))
+ (insert (format "import %s\n" (file-name-sans-extension py-file)))
+ (unless arg
+ (insert "import pytest\n")))))
(defun km/pytest-compile (arg)
"Run pytest.