changeset 17450:9c362a497eae

test-convert-mtn.t: generate files in binary mode
author Patrick Mezard <patrick@mezard.eu>
date Fri, 03 Aug 2012 17:26:58 +0200
parents 3d1b64bc8150
children 8e1fa8a32f2b
files tests/test-convert-mtn.t
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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