summaryrefslogtreecommitdiff
path: root/Lib/test/test_imghdr.py
diff options
context:
space:
mode:
authorMohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>2021-07-20 21:56:57 +0300
committerGitHub <noreply@github.com>2021-07-20 20:56:57 +0200
commit3b56b3b97d91e2b412ce1b2bcaddcd43ef3d223b (patch)
treefb444a949aef36f18b00b457b2fefdcba24c0023 /Lib/test/test_imghdr.py
parent6564656495d456a1bcc1aaa06abfc696209f37b2 (diff)
downloadcpython-git-3b56b3b97d91e2b412ce1b2bcaddcd43ef3d223b.tar.gz
bpo-44539: Support recognizing JPEG files without JFIF or Exif markers (GH-26964)
Co-authored-by: moemansour03@gmail.com <m.mansour@tecfrac.com> Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/test/test_imghdr.py')
-rw-r--r--Lib/test/test_imghdr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_imghdr.py b/Lib/test/test_imghdr.py
index b2d1fc8322..ca0a0b23c3 100644
--- a/Lib/test/test_imghdr.py
+++ b/Lib/test/test_imghdr.py
@@ -16,6 +16,7 @@ TEST_FILES = (
('python.pgm', 'pgm'),
('python.pbm', 'pbm'),
('python.jpg', 'jpeg'),
+ ('python-raw.jpg', 'jpeg'), # raw JPEG without JFIF/EXIF markers
('python.ras', 'rast'),
('python.sgi', 'rgb'),
('python.tiff', 'tiff'),