/breezy/trunk

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

« back to all changes in this revision

Viewing changes to breezy/tests/test_osutils.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-17 19:05:13 UTC
  • mfrom: (7121.2.2 backslash-support)
  • Revision ID: breezy.the.bot@gmail.com-20181117190513-mktc25th4dc28qg5
Support adding files with filenames that are just a backslash on
platforms where it is not the path separator.

Merged from https://code.launchpad.net/~jelmer/brz/backslash-support/+merge/355135

Show diffs side-by-side

added added

removed removed

Lines of Context:
1058
1058
        check(['a', 'b'], 'a/b')
1059
1059
        check(['a', 'b'], 'a/./b')
1060
1060
        check(['a', '.b'], 'a/.b')
1061
 
        check(['a', '.b'], 'a\\.b')
 
1061
        if os.path.sep == '\\':
 
1062
            check(['a', '.b'], 'a\\.b')
 
1063
        else:
 
1064
            check(['a\\.b'], 'a\\.b')
1062
1065
 
1063
1066
        self.assertRaises(errors.BzrError, osutils.splitpath, 'a/../b')
1064
1067