summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_old_mailbox.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-07-11 14:33:51 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-07-11 14:33:51 (GMT)
commit74b8d333b708e2f029f60a06bbb5abb31199426f (patch)
tree395efe22fbfc0239eb794063d4add723a714c5cf /Lib/test/test_old_mailbox.py
parentc91cbb948a223f0921300dc7b4f4b762b60420f3 (diff)
downloadcpython-74b8d333b708e2f029f60a06bbb5abb31199426f.zip
cpython-74b8d333b708e2f029f60a06bbb5abb31199426f.tar.gz
cpython-74b8d333b708e2f029f60a06bbb5abb31199426f.tar.bz2
#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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_old_mailbox.py b/Lib/test/test_old_mailbox.py
index e61b19f..c1bebaf 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))