test_unicode_error(): Comment this test out, since we still have

controversy.
This commit is contained in:
Barry Warsaw 2002-09-26 17:21:53 +00:00
parent 9c74569ec9
commit 09f7424f3a
1 changed files with 8 additions and 8 deletions

View File

@ -2156,14 +2156,14 @@ A very long line that must get split to something other than at the
h.append('hello', 'iso-8859-1') h.append('hello', 'iso-8859-1')
eq(h, '=?iso-8859-1?q?hello?=') eq(h, '=?iso-8859-1?q?hello?=')
def test_unicode_error(self): ## def test_unicode_error(self):
raises = self.assertRaises ## raises = self.assertRaises
raises(UnicodeError, Header, u'[P\xf6stal]', 'us-ascii') ## raises(UnicodeError, Header, u'[P\xf6stal]', 'us-ascii')
raises(UnicodeError, Header, '[P\xf6stal]', 'us-ascii') ## raises(UnicodeError, Header, '[P\xf6stal]', 'us-ascii')
h = Header() ## h = Header()
raises(UnicodeError, h.append, u'[P\xf6stal]', 'us-ascii') ## raises(UnicodeError, h.append, u'[P\xf6stal]', 'us-ascii')
raises(UnicodeError, h.append, '[P\xf6stal]', 'us-ascii') ## raises(UnicodeError, h.append, '[P\xf6stal]', 'us-ascii')
raises(UnicodeError, Header, u'\u83ca\u5730\u6642\u592b', 'iso-8859-1') ## raises(UnicodeError, Header, u'\u83ca\u5730\u6642\u592b', 'iso-8859-1')