~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_whitebox.py

  • Committer: Robert Collins
  • Date: 2008-09-02 05:28:37 UTC
  • mfrom: (3675 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3677.
  • Revision ID: robertc@robertcollins.net-20080902052837-ec3qlv41q5e7f6fl
Resolve conflicts with NEWS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        if it is inside a branch and return the path relative to the base.
37
37
        """
38
38
        import tempfile
39
 
        
 
39
 
40
40
        savedir = os.getcwdu()
41
 
        dtmp = tempfile.mkdtemp()
 
41
        dtmp = osutils.mkdtemp()
42
42
        # On Mac OSX, /tmp actually expands to /private/tmp
43
43
        dtmp = realpath(dtmp)
44
44
 
45
45
        def rp(p):
46
46
            return relpath(dtmp, p)
47
 
        
 
47
 
48
48
        try:
49
49
            # check paths inside dtmp while standing outside it
50
50
            self.assertEqual(rp(pathjoin(dtmp, 'foo')), 'foo')