~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testnonascii.py

- win32 get_console_size from Alexander

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
 
21
 
from bzrlib.tests import TestCaseInTempDir
 
21
from bzrlib.selftest import TestCaseInTempDir
22
22
from bzrlib.branch import Branch
23
23
 
24
24
 
30
30
        try:
31
31
            os.mkdir(br_dir)
32
32
            os.chdir(br_dir)
33
 
        except UnicodeEncodeError:
 
33
        except EncodingError:
34
34
            self.log("filesystem can't accomodate nonascii names")
35
35
            return
36
36
        br = Branch.initialize(u".")
37
37
        file("a", "w").write("hello")
38
 
        br.working_tree().add(["a"], ["a-id"])
 
38
        br.add(["a"], ["a-id"])