diff options
author | Guido van Rossum <guido@python.org> | 2007-07-21 00:21:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-21 00:21:26 (GMT) |
commit | d4eda825c7ed83822868e2e6d794e2ad4dc6c955 (patch) | |
tree | 3e66eeefe7aed19451a9483d93ac427019ab3a79 /Lib/test/test_mailbox.py | |
parent | bf4806bac5697bd50e6ca41fcf6838f93ed9a511 (diff) | |
download | cpython-d4eda825c7ed83822868e2e6d794e2ad4dc6c955.zip cpython-d4eda825c7ed83822868e2e6d794e2ad4dc6c955.tar.gz cpython-d4eda825c7ed83822868e2e6d794e2ad4dc6c955.tar.bz2 |
SF patch# 1757839 by Alexandre Vassalotti -- make test_mailbox and
test_old_mailbox pass.
Diffstat (limited to 'Lib/test/test_mailbox.py')
-rw-r--r-- | Lib/test/test_mailbox.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index e5930d8..91e7847 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -58,7 +58,6 @@ class TestMailbox(TestBase): self._box = self._factory(self._path) def tearDown(self): - self._box.close() self._delete_recursively(self._path) def test_add(self): @@ -695,7 +694,6 @@ class TestMaildir(TestMailbox): class _TestMboxMMDF(TestMailbox): def tearDown(self): - self._box.close() self._delete_recursively(self._path) for lock_remnant in glob.glob(self._path + '.*'): test_support.unlink(lock_remnant) @@ -736,7 +734,7 @@ class _TestMboxMMDF(TestMailbox): self._box._file.seek(0) contents = self._box._file.read() self._box.close() - self.assert_(contents == open(self._path, 'rb').read()) + self.assert_(contents == open(self._path, 'r').read()) self._box = self._factory(self._path) def test_lock_conflict(self): @@ -918,7 +916,6 @@ class TestBabyl(TestMailbox): _factory = lambda self, path, factory=None: mailbox.Babyl(path, factory) def tearDown(self): - self._box.close() self._delete_recursively(self._path) for lock_remnant in glob.glob(self._path + '.*'): test_support.unlink(lock_remnant) |