##// END OF EJS Templates
py3: replace file() with open() in test-convert-mtn.t...
Pulkit Goyal -
r36029:233fb0b9 default
parent child Browse files
Show More
@@ -43,7 +43,7 b' create monotone repository'
43 $ mkdir dir
43 $ mkdir dir
44 $ echo b > dir/b
44 $ echo b > dir/b
45 $ echo d > dir/d
45 $ echo d > dir/d
46 $ $PYTHON -c 'file("bin", "wb").write("a\\x00b")'
46 $ $PYTHON -c 'open("bin", "wb").write(b"a\\x00b")'
47 $ echo c > c
47 $ echo c > c
48 $ mtn add a dir/b dir/d c bin
48 $ mtn add a dir/b dir/d c bin
49 mtn: adding 'a' to workspace manifest
49 mtn: adding 'a' to workspace manifest
@@ -65,7 +65,7 b' update monotone working directory'
65 $ echo b >> dir/b
65 $ echo b >> dir/b
66 $ mtn drop c
66 $ mtn drop c
67 mtn: dropping 'c' from workspace manifest
67 mtn: dropping 'c' from workspace manifest
68 $ $PYTHON -c 'file("bin", "wb").write("b\\x00c")'
68 $ $PYTHON -c 'open("bin", "wb").write(b"b\\x00c")'
69 $ mtn ci -m update1
69 $ mtn ci -m update1
70 mtn: beginning commit on branch 'com.selenic.test'
70 mtn: beginning commit on branch 'com.selenic.test'
71 mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff
71 mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff
@@ -217,8 +217,8 b' test diverging directory moves'
217
217
218 test large file support (> 32kB)
218 test large file support (> 32kB)
219
219
220 >>> fp = file('large-file', 'wb')
220 >>> fp = open('large-file', 'wb')
221 >>> for x in xrange(10000): fp.write('%d\n' % x)
221 >>> for x in xrange(10000): fp.write(b'%d\n' % x)
222 >>> fp.close()
222 >>> fp.close()
223 $ md5sum.py large-file
223 $ md5sum.py large-file
224 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file
224 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file
General Comments 0
You need to be logged in to leave comments. Login now