testing/lisp/test-ob-tangle.el: Avoid interaction in test

* testing/lisp/test-ob-tangle.el (ob-tangle/detangle-false-positive):
Unset modification flag from buffer to kill
(testing/examples/babel.org) in tear down step of test to avoid Emacs
asking for confirmation during interactive testing from within Emacs.
This commit is contained in:
Evgenii Klimov 2023-07-16 13:14:38 +01:00 committed by Ihor Radchenko
parent 36c254ae30
commit d6f3aed7b1
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 0 deletions

View File

@ -565,6 +565,8 @@ another block
(should (equal (string-trim (org-element-property
:value (org-element-at-point)))
";; detangle changes"))))
(with-current-buffer buffer
(set-buffer-modified-p nil))
(kill-buffer buffer))))
(provide 'test-ob-tangle)