~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Johan Walles
  • Date: 2009-05-05 16:57:19 UTC
  • mto: This revision was merged to the branch mainline in revision 4343.
  • Revision ID: johan.walles@gmail.com-20090505165719-x2kib8xvablsfztu
Add unit test and fix for minimum_path_selection() vs directory names with
non-characters in them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
703
703
            osutils.minimum_path_selection(['a/', 'b']))
704
704
        self.assertEqual(set(['a/', 'b']),
705
705
            osutils.minimum_path_selection(['a/c', 'a/', 'b']))
 
706
        self.assertEqual(set(['a-b', 'a', 'a0b']),
 
707
            osutils.minimum_path_selection(['a-b', 'a/b', 'a0b', 'a']))
706
708
 
707
709
    def test_mkdtemp(self):
708
710
        tmpdir = osutils._win32_mkdtemp(dir='.')