/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/per_workingtree/test_readonly.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import sys
21
21
import time
22
22
 
23
 
from bzrlib import (
 
23
from breezy import (
24
24
    hashcache,
25
25
    tests,
26
26
    )
27
 
from bzrlib.tests.per_workingtree import TestCaseWithWorkingTree
 
27
from breezy.tests.per_workingtree import TestCaseWithWorkingTree
28
28
 
29
 
from bzrlib.workingtree import InventoryWorkingTree
 
29
from breezy.workingtree import InventoryWorkingTree
30
30
 
31
31
 
32
32
class TestReadonly(TestCaseWithWorkingTree):
50
50
    def _set_all_dirs(self, basedir, readonly=True):
51
51
        """Recursively set all directories beneath this one."""
52
52
        if readonly:
53
 
            mode = 0555
 
53
            mode = 0o555
54
54
        else:
55
 
            mode = 0755
 
55
            mode = 0o755
56
56
 
57
57
        for root, dirs, files in os.walk(basedir, topdown=False):
58
58
            for d in dirs: