See previous commit.
Signed-off-by: Pieter Praet <[email protected]>
---
tests/magit-tests.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/magit-tests.el b/tests/magit-tests.el
index 09cbf61..a3c8d43 100644
--- a/tests/magit-tests.el
+++ b/tests/magit-tests.el
@@ -41,9 +41,8 @@ (defmacro magit-tests--with-open-file (filename &rest body)
(when ,buffer (kill-buffer ,buffer))))))
(defun magit-tests--modify-file (filename)
- (with-temp-buffer
- (insert (symbol-name (gensym "content")))
- (write-file (expand-file-name filename))))
+ (with-temp-file (expand-file-name filename)
+ (insert (symbol-name (gensym "content")))))
(defun magit-tests--modify-and-commit (filename)
(magit-tests--modify-file filename)
--
1.7.11.1
--
---
You received this message because you are subscribed to the Google Groups
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.