tests/test-impexp-branch.t
changeset 36424 4bc983568016
parent 33978 4d40fd0283d8
child 38373 e033fd788bf8
--- a/tests/test-impexp-branch.t	Sat Feb 24 16:06:21 2018 +0530
+++ b/tests/test-impexp-branch.t	Sat Feb 24 16:07:45 2018 +0530
@@ -74,9 +74,9 @@
   $ hg strip --no-backup .
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   >>> import re
-  >>> p = file('../r1.patch', 'rb').read()
+  >>> p = open('../r1.patch', 'rb').read()
   >>> p = re.sub(r'Parent\s+', 'Parent ', p)
-  >>> file('../r1-ws.patch', 'wb').write(p)
+  >>> open('../r1-ws.patch', 'wb').write(p)
   $ hg import --exact ../r1-ws.patch
   applying ../r1-ws.patch