summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-12-06 14:40:02 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-12-06 14:40:02 +0100
commit1afe10bbe658165228b992e4307bc8e365059607 (patch)
tree13ed1f0e0b5a79ef2d2c60b7e45b268f61888c34 /testlib.py
parentafe694be68dc409527afc23fd1a050b63bd7137f (diff)
downloadlogilab-common-1afe10bbe658165228b992e4307bc8e365059607.tar.gz
py3k: replace "file(path)" with "open(path)"
Diffstat (limited to 'testlib.py')
-rw-r--r--testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testlib.py b/testlib.py
index 62fd36b..7fab1f6 100644
--- a/testlib.py
+++ b/testlib.py
@@ -886,7 +886,7 @@ succeeded test into", osp.join(os.getcwd(), FILE_RESTART)
@deprecated('Non-standard: please copy test method to your TestCase class')
def assertFileEquals(self, fname1, fname2, junk=(' ', '\t')):
"""compares two files using difflib"""
- self.assertStreamEqual(file(fname1), file(fname2), junk,
+ self.assertStreamEqual(open(fname1), open(fname2), junk,
msg_prefix='Files differs\n-:%s\n+:%s\n'%(fname1, fname2))
assertFileEqual = assertFileEquals