tests/test-relink.t
changeset 36019 2ea0e89bca1e
parent 35393 4441705b7111
child 37338 cbc4425e81b5
--- a/tests/test-relink.t	Sun Feb 11 17:02:14 2018 +0530
+++ b/tests/test-relink.t	Sun Feb 11 17:03:17 2018 +0530
@@ -49,7 +49,7 @@
 
 Test files are read in binary mode
 
-  $ $PYTHON -c "file('.hg/store/data/dummy.i', 'wb').write('a\r\nb\n')"
+  $ $PYTHON -c "open('.hg/store/data/dummy.i', 'wb').write(b'a\r\nb\n')"
   $ cd ..
 
 
@@ -68,7 +68,7 @@
   $ echo b >> b
   $ hg ci -m changeb
   created new head
-  $ $PYTHON -c "file('.hg/store/data/dummy.i', 'wb').write('a\nb\r\n')"
+  $ $PYTHON -c "open('.hg/store/data/dummy.i', 'wb').write(b'a\nb\r\n')"
 
 
 relink