/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-09-19 23:07:18 UTC
  • mfrom: (4707.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090919230718-vm9zqiov9h3t9bzg
(vila) Fix some test regressions on OSX and FreeBSD

Show diffs side-by-side

added added

removed removed

Lines of Context:
447
447
    def test_canonical_relpath_simple(self):
448
448
        f = file('MixedCaseName', 'w')
449
449
        f.close()
450
 
        # Watch out for tricky test dir (on OSX /tmp -> /private/tmp)
451
 
        real_base_dir = osutils.realpath(self.test_base_dir)
452
 
        actual = osutils.canonical_relpath(real_base_dir, 'mixedcasename')
 
450
        actual = osutils.canonical_relpath(self.test_base_dir, 'mixedcasename')
453
451
        self.failUnlessEqual('work/MixedCaseName', actual)
454
452
 
455
453
    def test_canonical_relpath_missing_tail(self):
456
454
        os.mkdir('MixedCaseParent')
457
 
        # Watch out for tricky test dir (on OSX /tmp -> /private/tmp)
458
 
        real_base_dir = osutils.realpath(self.test_base_dir)
459
 
        actual = osutils.canonical_relpath(real_base_dir,
 
455
        actual = osutils.canonical_relpath(self.test_base_dir,
460
456
                                           'mixedcaseparent/nochild')
461
457
        self.failUnlessEqual('work/MixedCaseParent/nochild', actual)
462
458