diff -r d7238d125aa2 -r 3790d735ff68 tests/test-walk.t --- a/tests/test-walk.t Sun Feb 11 16:58:22 2018 +0530 +++ b/tests/test-walk.t Sun Feb 11 16:59:35 2018 +0530 @@ -494,12 +494,12 @@ Test listfile and listfile0 - $ $PYTHON -c "file('listfile0', 'wb').write('fenugreek\0new\0')" + $ $PYTHON -c "open('listfile0', 'wb').write(b'fenugreek\0new\0')" $ hg debugwalk -I 'listfile0:listfile0' matcher: f fenugreek fenugreek f new new - $ $PYTHON -c "file('listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')" + $ $PYTHON -c "open('listfile', 'wb').write(b'fenugreek\nnew\r\nmammals/skunk\n')" $ hg debugwalk -I 'listfile:listfile' matcher: f fenugreek fenugreek