diff --git a/product/ERP5Type/tests/runFunctionalTest.py b/product/ERP5Type/tests/runFunctionalTest.py index f49bccf03ade9ae09a713d54eef43348ff028fd6..708b221f1cd43c0ac8ccb4ba1165be14949f5747 100755 --- a/product/ERP5Type/tests/runFunctionalTest.py +++ b/product/ERP5Type/tests/runFunctionalTest.py @@ -130,7 +130,11 @@ class FunctionalTestRunner: self.portal_url = "http://%s:%d/%s" % (self.host, self.port, self.portal_name) def openUrl(self, url): - f = urllib2.urlopen(url) + # Send Accept-Charset headers to activate the UnicodeConflictResolver + # (imitating firefox 3.5.9 here) + headers = { 'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' } + request = urllib2.Request(url, headers=headers) + f = urllib2.urlopen(request) file_content = f.read() f.close() return file_content