[Python-checkins] python/dist/src/Lib/email/test test_email.py,1.14,1.15
barry@users.sourceforge.net
barry@users.sourceforge.net
Sat, 28 Sep 2002 14:22:54 -0700
Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory usw-pr-cvs1:/tmp/cvs-serv16318
Modified Files:
test_email.py
Log Message:
Make the tests pass under Python 2.1 but only by cheating. Python 2.1
doesn't know about the ansi-x3.4-1968 charset so skip two tests that
rely on that (msg_32.txt and msg_33.txt).
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** test_email.py 28 Sep 2002 21:04:19 -0000 1.14
--- test_email.py 28 Sep 2002 21:22:52 -0000 1.15
***************
*** 1471,1474 ****
--- 1471,1480 ----
def test_more_rfc2231_parameters(self):
+ # BAW: What to do about this. Python 2.1 doesn't know about the
+ # charset ansi-x3.4-1968, so this test will fail. Do we teach Python
+ # about that charset, and if so, where (maybe Charset.py)? For now,
+ # just skip this test if we aren't at least in Python 2.2.
+ if sys.hexversion < 0x20200000:
+ return
msg, text = self._msgobj('msg_33.txt')
self._idempotent(msg, text)
***************
*** 2253,2256 ****
--- 2259,2268 ----
def test_rfc2231_get_content_charset(self):
+ # BAW: What to do about this. Python 2.1 doesn't know about the
+ # charset ansi-x3.4-1968, so this test will fail. Do we teach Python
+ # about that charset, and if so, where (maybe Charset.py)? For now,
+ # just skip this test if we aren't at least in Python 2.2.
+ if sys.hexversion < 0x20200000:
+ return
eq = self.assertEqual
msg = self._msgobj('msg_32.txt')