]> git.eshelyaron.com Git - emacs.git/commitdiff
; Pacify obsoletion warnings in image-tests.el.
authorBasil L. Contovounesios <contovob@tcd.ie>
Sat, 2 Apr 2022 16:40:05 +0000 (19:40 +0300)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sat, 2 Apr 2022 16:41:12 +0000 (19:41 +0300)
test/lisp/image-tests.el

index 6abfcfedcf471ff3902b0c02c8e8e0a068b9a186..2b3e818d720216ea83267199b37915b8a4cb7d50 100644 (file)
   (should-not (find-image '((:type png :file "does-not-exist-foo-bar.png")))))
 
 (ert-deftest image-type-from-file-name ()
-  (should (eq (image-type-from-file-name "foo.jpg") 'jpeg))
-  (should (eq (image-type-from-file-name "foo.png") 'png))
-  (should (eq (image-type-from-file-name "foo.webp") 'webp)))
+  (with-suppressed-warnings ((obsolete image-type-from-file-name))
+    (should (eq (image-type-from-file-name "foo.jpg") 'jpeg))
+    (should (eq (image-type-from-file-name "foo.png") 'png))
+    (should (eq (image-type-from-file-name "foo.webp") 'webp))))
 
 (ert-deftest image-type/from-filename ()
   ;; On emba, `image-types' and `image-load-path' do not exist.