[Python-checkins]
python/dist/src/Lib/email/test test_email.py, 1.52, 1.53
twouters at users.sourceforge.net
twouters at users.sourceforge.net
Sat Mar 20 15:29:52 EST 2004
Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23241/Lib/email/test
Modified Files:
test_email.py
Log Message:
test_email: comment out two fail-test cases that no longer fail with the new
parser -- for now. Failure behaviour of the new parser(s) will change in any
case, so this will be revisited later anyway.
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** test_email.py 3 Sep 2003 04:10:52 -0000 1.52
--- test_email.py 20 Mar 2004 20:29:50 -0000 1.53
***************
*** 1188,1201 ****
eq(msg.get_subtype(), None)
! def test_bogus_boundary(self):
! fp = openfile(findfile('msg_15.txt'))
! try:
! data = fp.read()
! finally:
! fp.close()
! p = Parser(strict=True)
! # Note, under a future non-strict parsing mode, this would parse the
! # message into the intended message tree.
! self.assertRaises(Errors.BoundaryError, p.parsestr, data)
def test_multipart_no_boundary(self):
--- 1188,1202 ----
eq(msg.get_subtype(), None)
! ## XXX: No longer fails with the new parser. Should it ?
! ## def test_bogus_boundary(self):
! ## fp = openfile(findfile('msg_15.txt'))
! ## try:
! ## data = fp.read()
! ## finally:
! ## fp.close()
! ## p = Parser(strict=True)
! ## # Note, under a future non-strict parsing mode, this would parse the
! ## # message into the intended message tree.
! ## self.assertRaises(Errors.BoundaryError, p.parsestr, data)
def test_multipart_no_boundary(self):
***************
*** 1245,1263 ****
""")
! def test_no_separating_blank_line(self):
! eq = self.ndiffAssertEqual
! msg = self._msgobj('msg_35.txt')
! eq(msg.as_string(), """\
! From: aperson at dom.ain
! To: bperson at dom.ain
! Subject: here's something interesting
!
! counter to RFC 2822, there's no separating newline here
! """)
! # strict=True should raise an exception
! self.assertRaises(Errors.HeaderParseError,
! self._msgobj, 'msg_35.txt', True)
!
!
# Test RFC 2047 header encoding and decoding
--- 1246,1265 ----
""")
! ## XXX: No longer fails with the new parser. Should it ?
! ## def test_no_separating_blank_line(self):
! ## eq = self.ndiffAssertEqual
! ## msg = self._msgobj('msg_35.txt')
! ## eq(msg.as_string(), """\
! ## From: aperson at dom.ain
! ## To: bperson at dom.ain
! ## Subject: here's something interesting
! ##
! ## counter to RFC 2822, there's no separating newline here
! ## """)
! ## # strict=True should raise an exception
! ## self.assertRaises(Errors.HeaderParseError,
! ## self._msgobj, 'msg_35.txt', True)
! ##
! ##
# Test RFC 2047 header encoding and decoding
More information about the Python-checkins
mailing list