[Python-Dev] 2.3.1 is (almost) a go (original) (raw)

Jeff Epler jepler at unpythonic.net
Wed Sep 24 08:19:20 EDT 2003


On Wed, Sep 24, 2003 at 07:10:51AM -0500, Jeff Epler wrote:

Perhaps a better way to fix it would be to test for a superset in testmimetypes. assert set(all) >= set('.bat', ...)

The general idea is implemented in this patch:

--- test_mimetypes.py.orig 2003-09-24 07:11:12.000000000 -0500 +++ test_mimetypes.py 2003-09-24 07🔞58.000000000 -0500 @@ -1,18 +1,21 @@ import mimetypes import StringIO import unittest +import sets from test import test_support -# Tell it we don't know about external files: -mimetypes.knownfiles = [] -mimetypes.inited = False

@@ -45,15 +48,16 @@ eq(self.db.guess_extension('image/jpg', strict=False), '.jpg')

 def test_guess_all_types(self):


More information about the Python-Dev mailing list