Commit 92780954 authored by Juanma Barranquero's avatar Juanma Barranquero

* test/automated/python-tests.el: Avoid warnings

(python-tests-with-temp-buffer, python-tests-with-temp-file):
Bind `python-indent-guess-indent-offset' to nil.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
# Changes to be committed:
#	modified:   test/automated/python-tests.el
parent 312bbfee
......@@ -36,10 +36,11 @@ BODY is code to be executed within the temp buffer. Point is
always located at the beginning of buffer."
(declare (indent 1) (debug t))
(insert ,contents)
(goto-char (point-min))
(let ((python-indent-guess-indent-offset nil))
(insert ,contents)
(goto-char (point-min))
(defmacro python-tests-with-temp-file (contents &rest body)
"Create a `python-mode' enabled file with CONTENTS.
......@@ -48,7 +49,8 @@ always located at the beginning of buffer."
(declare (indent 1) (debug t))
;; temp-file never actually used for anything?
`(let* ((temp-file (make-temp-file "python-tests" nil ".py"))
(buffer (find-file-noselect temp-file)))
(buffer (find-file-noselect temp-file))
(python-indent-guess-indent-offset nil))
(with-current-buffer buffer
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment