aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_imghdr.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_imghdr.py')
-rw-r--r--Lib/test/test_imghdr.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_imghdr.py b/Lib/test/test_imghdr.py
index ca0a0b23c3c..208c8eee455 100644
--- a/Lib/test/test_imghdr.py
+++ b/Lib/test/test_imghdr.py
@@ -1,12 +1,13 @@
-import imghdr
import io
import os
import pathlib
import unittest
import warnings
-from test.support import findfile
+from test.support import findfile, warnings_helper
from test.support.os_helper import TESTFN, unlink
+imghdr = warnings_helper.import_deprecated("imghdr")
+
TEST_FILES = (
('python.png', 'png'),