Rev 3695: Use build_tree_contents instead of direct open().write() in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Wed Sep 10 20:52:51 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 3695
revision-id: john at arbash-meinel.com-20080910195236-ctx16y1pjgi7m2wl
parent: mhammond at skippinet.com.au-20080906080523-6t2ghw0q2xqyffvx
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Wed 2008-09-10 14:52:36 -0500
message:
Use build_tree_contents instead of direct open().write()
-------------- next part --------------
=== modified file 'bzrlib/tests/test_transport_implementations.py'
--- a/bzrlib/tests/test_transport_implementations.py 2008-09-06 08:05:23 +0000
+++ b/bzrlib/tests/test_transport_implementations.py 2008-09-10 19:52:36 +0000
@@ -1252,7 +1252,7 @@
self.failIf(t3.has('b/d'))
if t1.is_readonly():
- open('b/d', 'wb').write('newfile\n')
+ self.build_tree_contents([('b/d', 'newfile\n')])
else:
t2.put_bytes('d', 'newfile\n')
@@ -1546,7 +1546,7 @@
content = osutils.rand_bytes(200*1024)
content_size = len(content)
if transport.is_readonly():
- file('a', 'wb').write(content)
+ self.build_tree_contents([('a', content)])
else:
transport.put_bytes('a', content)
def check_result_data(result_vector):
More information about the bazaar-commits
mailing list