]> git.eshelyaron.com Git - emacs.git/commitdiff
Assume unfilled byte-compiler warnings in tests
authorStefan Kangas <stefan@marxist.se>
Mon, 6 Dec 2021 20:48:40 +0000 (21:48 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 6 Dec 2021 21:19:40 +0000 (22:19 +0100)
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp--define-warning-file-test): Remove workaround for filled
byte-compilation warnings.  See Bug#52281.

test/lisp/emacs-lisp/bytecomp-tests.el

index b82afd353cfe8bc6b2cfbb063d8c0ba88930f4bf..468b9b32f74f4f7e457df7bee338d46ff0e027e5 100644 (file)
@@ -851,8 +851,7 @@ byte-compiled.  Run with dynamic binding."
        (byte-compile-file ,(ert-resource-file file))
        (ert-info ((buffer-string) :prefix "buffer: ")
          (,(if reverse 'should-not 'should)
-          (re-search-forward ,(string-replace " " "[ \n]+" re-warning)
-                             nil t))))))
+          (re-search-forward ,re-warning nil t))))))
 
 (bytecomp--define-warning-file-test "error-lexical-var-with-add-hook.el"
                             "add-hook.*lexical var")