Bugs item #1464978, was opened at 2006-04-06 00:19 Message generated for change (Comment added) made by anthonybaxter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1464978&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Anthony Baxter (anthonybaxter) >Assigned to: Anthony Baxter (anthonybaxter) Summary: test_urllib2 and test_mimetypes = failure Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Anthony Baxter (anthonybaxter) Date: 2006-04-06 17:38 Message: 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. :-( ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1464978&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com