~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_whitebox.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-13 07:22:23 UTC
  • mfrom: (2076 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2077.
  • Revision ID: john@arbash-meinel.com-20061013072223-9d1320456e7df776
[merge] bzr.dev 2076

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import os
18
18
import unittest
19
19
 
 
20
from bzrlib import (
 
21
    osutils,
 
22
    )
20
23
from bzrlib.tests import TestCaseWithTransport, TestCase
21
24
from bzrlib.branch import Branch
22
25
from bzrlib.errors import PathNotChild
33
36
        if it is inside a branch and return the path relative to the base.
34
37
        """
35
38
        import tempfile
36
 
        from bzrlib.osutils import rmtree
37
39
        
38
40
        savedir = os.getcwdu()
39
41
        dtmp = tempfile.mkdtemp()
81
83
 
82
84
        finally:
83
85
            os.chdir(savedir)
84
 
            rmtree(dtmp)
 
86
            osutils.rmtree(dtmp)