tests/test-hgweb.t
changeset 36394 4bc983568016
parent 36232 881596e51fca
child 37492 8d05938dd063
--- a/tests/test-hgweb.t	Sat Feb 24 16:06:21 2018 +0530
+++ b/tests/test-hgweb.t	Sat Feb 24 16:07:45 2018 +0530
@@ -333,7 +333,7 @@
 
 Test the access/error files are opened in append mode
 
-  $ $PYTHON -c "print len(file('access.log').readlines()), 'log lines written'"
+  $ $PYTHON -c "print len(open('access.log', 'rb').readlines()), 'log lines written'"
   14 log lines written
 
 static file