diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2006-07-23 13:04:00 +0000 |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2006-07-23 13:04:00 +0000 |
commit | afa358fabf2632c218d106550a1a4dba9b6957b0 (patch) | |
tree | 7acd0086522492df6c9a883aa9015d6a1e6db01f /Lib/test | |
parent | 82247cb7d1a5363dbe40ba14207916f0f939e6f6 (diff) | |
download | cpython-git-afa358fabf2632c218d106550a1a4dba9b6957b0.tar.gz |
Get mailbox module working on OS/2 EMX port.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_mailbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index 2f8cb8d55f..45dd118fbe 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -461,7 +461,7 @@ class TestMaildir(TestMailbox): def setUp(self): TestMailbox.setUp(self) - if os.name == 'nt': + if os.name in ('nt', 'os2'): self._box.colon = '!' def test_add_MM(self): @@ -520,7 +520,7 @@ class TestMaildir(TestMailbox): # Initialize an existing mailbox self.tearDown() for subdir in '', 'tmp', 'new', 'cur': - os.mkdir(os.path.join(self._path, subdir)) + os.mkdir(os.path.normpath(os.path.join(self._path, subdir))) self._box = mailbox.Maildir(self._path) self._check_basics(factory=rfc822.Message) self._box = mailbox.Maildir(self._path, factory=None) |