--- 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