summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mailbox.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-11 08:59:40 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-11 08:59:40 (GMT)
commitedb978ff632f01c54927f12609ca9bb21224a60c (patch)
tree52e104b13c8dc39f64011dcb8e3518c11fba65a1 /Lib/test/test_mailbox.py
parentf7fa63dd55e638d300a8d4a148dcedb402fdb750 (diff)
downloadcpython-edb978ff632f01c54927f12609ca9bb21224a60c.zip
cpython-edb978ff632f01c54927f12609ca9bb21224a60c.tar.gz
cpython-edb978ff632f01c54927f12609ca9bb21224a60c.tar.bz2
#2814: remove deprecated classes from mailbox module. Patch by Humberto Diogenes.
Diffstat (limited to 'Lib/test/test_mailbox.py')
-rw-r--r--Lib/test/test_mailbox.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
index bc77621..e14516d 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -1768,20 +1768,7 @@ class MaildirTestCase(unittest.TestCase):
self.assert_(self.mbox.next() is None)
self.assert_(self.mbox.next() is None)
- def test_unix_mbox(self):
- ### should be better!
- import email.parser
- fname = self.createMessage("cur", True)
- n = 0
- for msg in mailbox.PortableUnixMailbox(open(fname),
- email.parser.Parser().parse):
- n += 1
- self.assertEqual(msg["subject"], "Simple Test")
- # XXX Disabled until we figure out how to fix this
- ##self.assertEqual(len(str(msg)), len(FROM_)+len(DUMMY_MESSAGE))
- self.assertEqual(n, 1)
-
-## End: classes from the original module (for backward compatibility).
+## End: tests from the original module (for backward compatibility).
_sample_message = """\