/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_permissions.py

  • Committer: Aaron Bentley
  • Date: 2006-09-09 18:52:57 UTC
  • mfrom: (1996 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1997.
  • Revision ID: aaron.bentley@utoronto.ca-20060909185257-ce0ee03ee5125ff1
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
import os
34
34
import sys
35
35
import stat
36
 
from StringIO import StringIO
 
36
from cStringIO import StringIO
37
37
import urllib
38
38
 
39
39
from bzrlib.branch import Branch
159
159
        #                    extra chmod calls aren't being made
160
160
        try:
161
161
            transport = get_transport(self.get_url())
162
 
            transport.put('my-lock', StringIO(''))
 
162
            transport.put_bytes('my-lock', '')
163
163
            lockable = LockableFiles(transport, 'my-lock', TransportLock)
164
164
            self.assertNotEqual(None, lockable._dir_mode)
165
165
            self.assertNotEqual(None, lockable._file_mode)
279
279
            self.assertTransportMode(t, 'a', 0666 &~umask)
280
280
 
281
281
            # but Transport overrides umask
282
 
            t.put('b', 'txt', mode=0666)
 
282
            t.put_bytes('b', 'txt', mode=0666)
283
283
            self.assertTransportMode(t, 'b', 0666)
284
284
 
285
285
            t._sftp.mkdir('c', mode=0777)