Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09f7424

Browse files
committed
test_unicode_error(): Comment this test out, since we still have
controversy.
1 parent 9c74569 commit 09f7424

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Lib/email/test/test_email.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,14 +2156,14 @@ def test_string_charset(self):
21562156
h.append('hello', 'iso-8859-1')
21572157
eq(h, '=?iso-8859-1?q?hello?=')
21582158

2159-
def test_unicode_error(self):
2160-
raises = self.assertRaises
2161-
raises(UnicodeError, Header, u'[P\xf6stal]', 'us-ascii')
2162-
raises(UnicodeError, Header, '[P\xf6stal]', 'us-ascii')
2163-
h = Header()
2164-
raises(UnicodeError, h.append, u'[P\xf6stal]', 'us-ascii')
2165-
raises(UnicodeError, h.append, '[P\xf6stal]', 'us-ascii')
2166-
raises(UnicodeError, Header, u'\u83ca\u5730\u6642\u592b', 'iso-8859-1')
2159+
## def test_unicode_error(self):
2160+
## raises = self.assertRaises
2161+
## raises(UnicodeError, Header, u'[P\xf6stal]', 'us-ascii')
2162+
## raises(UnicodeError, Header, '[P\xf6stal]', 'us-ascii')
2163+
## h = Header()
2164+
## raises(UnicodeError, h.append, u'[P\xf6stal]', 'us-ascii')
2165+
## raises(UnicodeError, h.append, '[P\xf6stal]', 'us-ascii')
2166+
## raises(UnicodeError, Header, u'\u83ca\u5730\u6642\u592b', 'iso-8859-1')
21672167

21682168

21692169

0 commit comments

Comments
 (0)