summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTim Golden <mail@timgolden.me.uk>2013-10-22 19:03:47 (GMT)
committerTim Golden <mail@timgolden.me.uk>2013-10-22 19:03:47 (GMT)
commita4df90ceb92f9d3ad8e3dd968a22fe732a41c159 (patch)
treea382098984f46b1a17ddfd8e0465e6e55815639c /Lib/test
parentd0a7e678044dc86860cb362f153a2be5976200d9 (diff)
parent27a856495eb1f61b21ab47bc9be86be57176153a (diff)
downloadcpython-a4df90ceb92f9d3ad8e3dd968a22fe732a41c159.zip
cpython-a4df90ceb92f9d3ad8e3dd968a22fe732a41c159.tar.gz
cpython-a4df90ceb92f9d3ad8e3dd968a22fe732a41c159.tar.bz2
Issue #15207: Fix mimetypes to read from correct area in Windows registry (Original patch by Dave Chambers)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_mimetypes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_mimetypes.py b/Lib/test/test_mimetypes.py
index 593fdb0..0b53032 100644
--- a/Lib/test/test_mimetypes.py
+++ b/Lib/test/test_mimetypes.py
@@ -98,7 +98,8 @@ class Win32MimeTypesTestCase(unittest.TestCase):
# Use file types that should *always* exist:
eq = self.assertEqual
eq(self.db.guess_type("foo.txt"), ("text/plain", None))
-
+ eq(self.db.guess_type("image.jpg"), ("image/jpeg", None))
+ eq(self.db.guess_type("image.png"), ("image/png", None))
def test_main():
support.run_unittest(MimeTypesTestCase,