summaryrefslogtreecommitdiff
path: root/Lib/test/test_mailbox.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-05-02 21:44:33 +0000
committerAndrew M. Kuchling <amk@amk.ca>2006-05-02 21:44:33 +0000
commit214db63df808721740b66b36c43988f56ea2712d (patch)
tree2aeacbac9bb73e0581ad96e1aa5aaed8278fa84b /Lib/test/test_mailbox.py
parentb2045837b69992d054aa12849b07a3b0c8b2bd09 (diff)
downloadcpython-git-214db63df808721740b66b36c43988f56ea2712d.tar.gz
Use open() instead of file()
Diffstat (limited to 'Lib/test/test_mailbox.py')
-rw-r--r--Lib/test/test_mailbox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
index 18b966fa68..914a20c2ba 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -717,7 +717,7 @@ class _TestMboxMMDF(TestMailbox):
self._box._file.seek(0)
contents = self._box._file.read()
self._box.close()
- self.assert_(contents == file(self._path, 'rb').read())
+ self.assert_(contents == open(self._path, 'rb').read())
self._box = self._factory(self._path)
@@ -1473,7 +1473,7 @@ class TestProxyFile(TestProxyFileBase):
def setUp(self):
self._path = test_support.TESTFN
- self._file = file(self._path, 'wb+')
+ self._file = open(self._path, 'wb+')
def tearDown(self):
self._file.close()
@@ -1522,7 +1522,7 @@ class TestPartialFile(TestProxyFileBase):
def setUp(self):
self._path = test_support.TESTFN
- self._file = file(self._path, 'wb+')
+ self._file = open(self._path, 'wb+')
def tearDown(self):
self._file.close()