##// END OF EJS Templates
py3: replace file() with open() in test-fileset.t...
Pulkit Goyal -
r36045:f6a8a81f default
parent child Browse files
Show More
@@ -180,7 +180,7 b' Test files status in different revisions'
180
180
181 Test files properties
181 Test files properties
182
182
183 >>> file('bin', 'wb').write('\0a')
183 >>> open('bin', 'wb').write(b'\0a')
184 $ fileset 'binary()'
184 $ fileset 'binary()'
185 $ fileset 'binary() and unknown()'
185 $ fileset 'binary() and unknown()'
186 bin
186 bin
@@ -219,8 +219,8 b' Test files properties'
219 $ hg --config ui.portablefilenames=ignore add con.xml
219 $ hg --config ui.portablefilenames=ignore add con.xml
220 #endif
220 #endif
221
221
222 >>> file('1k', 'wb').write(' '*1024)
222 >>> open('1k', 'wb').write(b' '*1024)
223 >>> file('2k', 'wb').write(' '*2048)
223 >>> open('2k', 'wb').write(b' '*2048)
224 $ hg add 1k 2k
224 $ hg add 1k 2k
225 $ fileset 'size("bar")'
225 $ fileset 'size("bar")'
226 hg: parse error: couldn't parse size: bar
226 hg: parse error: couldn't parse size: bar
General Comments 0
You need to be logged in to leave comments. Login now