test-convert-mtn.t: generate files in binary mode
authorPatrick Mezard <patrick@mezard.eu>
Fri, 03 Aug 2012 17:26:58 +0200
changeset 17450 9c362a497eae
parent 17449 3d1b64bc8150
child 17451 8e1fa8a32f2b
test-convert-mtn.t: generate files in binary mode
tests/test-convert-mtn.t
--- a/tests/test-convert-mtn.t	Fri Aug 03 17:26:30 2012 +0200
+++ b/tests/test-convert-mtn.t	Fri Aug 03 17:26:58 2012 +0200
@@ -219,7 +219,9 @@
 
 test large file support (> 32kB)
 
-  $ python -c 'for x in range(10000): print x' > large-file
+  >>> fp = file('large-file', 'wb')
+  >>> for x in xrange(10000): fp.write('%d\n' % x)
+  >>> fp.close()
   $ $TESTDIR/md5sum.py large-file
   5d6de8a95c3b6bf9e0ffb808ba5299c1  large-file
   $ mtn add large-file