[Checkins] SVN: zc.buildout/branches/tlotze-bugfix-md5/src/zc/buildout/download.txt Fix md5-tests for windows.
Sebastian Wehrmann
sw at gocept.com
Tue Sep 15 05:01:04 EDT 2009
Log message for revision 104011:
Fix md5-tests for windows.
Changed:
U zc.buildout/branches/tlotze-bugfix-md5/src/zc/buildout/download.txt
-=-
Modified: zc.buildout/branches/tlotze-bugfix-md5/src/zc/buildout/download.txt
===================================================================
--- zc.buildout/branches/tlotze-bugfix-md5/src/zc/buildout/download.txt 2009-09-15 09:01:02 UTC (rev 104010)
+++ zc.buildout/branches/tlotze-bugfix-md5/src/zc/buildout/download.txt 2009-09-15 09:01:04 UTC (rev 104011)
@@ -530,8 +530,10 @@
requires text files to be treated as binary to avoid implicit line-ending
conversions:
->>> text = 'First line of text.\nSecond line.\n'
->>> write(server_data, 'foo.txt', text)
+>>> text = 'First line of text.\r\nSecond line.\r\n'
+>>> f = open(join(server_data, 'foo.txt'), 'wb')
+>>> f.write(text)
+>>> f.close()
>>> path, is_temp = Download()(server_url+'foo.txt', md5(text).hexdigest())
>>> remove(path)
More information about the checkins
mailing list