diff options
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-07-11 14:37:20 (GMT) |
|---|---|---|
| committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-07-11 14:37:20 (GMT) |
| commit | c42f0addef96435f887b8e47719ccca5fd761bec (patch) | |
| tree | ff518e02c75750a67412932045256ed5308cc347 /Lib/test/test_old_mailbox.py | |
| parent | dc692f71435e01c2a2a367a4144f3e8e02a40b33 (diff) | |
| download | cpython-c42f0addef96435f887b8e47719ccca5fd761bec.zip cpython-c42f0addef96435f887b8e47719ccca5fd761bec.tar.gz cpython-c42f0addef96435f887b8e47719ccca5fd761bec.tar.bz2 | |
Merged revisions 73952 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73952 | amaury.forgeotdarc | 2009-07-11 16:33:51 +0200 (sam., 11 juil. 2009) | 4 lines
#2622 Import errors in email.message, from a py2app standalone application.
Patch by Mads Kiilerich, Reviewed by Barry Warsaw.
........
Diffstat (limited to 'Lib/test/test_old_mailbox.py')
| -rw-r--r-- | Lib/test/test_old_mailbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_old_mailbox.py b/Lib/test/test_old_mailbox.py index 7bd5557..add9406 100644 --- a/Lib/test/test_old_mailbox.py +++ b/Lib/test/test_old_mailbox.py @@ -99,11 +99,11 @@ class MaildirTestCase(unittest.TestCase): def test_unix_mbox(self): ### should be better! - import email.Parser + import email.parser fname = self.createMessage("cur", True) n = 0 for msg in mailbox.PortableUnixMailbox(open(fname), - email.Parser.Parser().parse): + email.parser.Parser().parse): n += 1 self.assertEqual(msg["subject"], "Simple Test") self.assertEqual(len(str(msg)), len(FROM_)+len(DUMMY_MESSAGE)) |
