~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testnonascii.py

- try to avoid test failure on platforms with ascii-only filesystems

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    def test_add_in_nonascii_branch(self):
28
28
        """Test adding in a non-ASCII branch."""
29
29
        br_dir = u"\u1234"
30
 
        os.mkdir(br_dir)
31
 
        os.chdir(br_dir)
 
30
        try:
 
31
            os.mkdir(br_dir)
 
32
            os.chdir(br_dir)
 
33
        except EncodingError:
 
34
            self.log("filesystem can't accomodate nonascii names")
 
35
            return
32
36
        br = Branch.initialize(u".")
33
37
        file("a", "w").write("hello")
34
38
        br.add(["a"], ["a-id"])