Issue 1464978: test_urllib2 and test_mimetypes = failure (original) (raw)

Issue1464978

Created on 2006-04-05 14:19 by anthonybaxter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg28093 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2006-04-05 14:19
Logging here because I don't have time to look into it at the moment. On Linux at least, "regrtest test_urllib2 test_mimetypes" will fail, because the mimetypes module's global dictionaries get modified by urllib2. The proper fix is to probably edit test_mimetypes to remove the assumptions that it knows what's in the mimetypes dictionary.
msg28094 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2006-04-06 07:38
Logged In: YES user_id=29957 Fixed in 43688 (trunk) and 43689 (release24-maint) I moved the default setting into a new function, and made test_mimetypes call that to reset things to a known state. module level global dictionaries suck. :-(
History
Date User Action Args
2022-04-11 14:56:16 admin set github: 43163
2006-04-05 14:19:38 anthonybaxter create