~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_whitebox.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-30 16:43:12 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060730164312-b025fd3ff0cee59e
rename  gpl.txt => COPYING.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 by Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
17
17
import os
18
18
import unittest
19
19
 
20
 
from bzrlib import (
21
 
    osutils,
22
 
    )
23
20
from bzrlib.tests import TestCaseWithTransport, TestCase
24
21
from bzrlib.branch import Branch
25
22
from bzrlib.errors import PathNotChild
36
33
        if it is inside a branch and return the path relative to the base.
37
34
        """
38
35
        import tempfile
 
36
        from bzrlib.osutils import rmtree
39
37
        
40
38
        savedir = os.getcwdu()
41
39
        dtmp = tempfile.mkdtemp()
83
81
 
84
82
        finally:
85
83
            os.chdir(savedir)
86
 
            osutils.rmtree(dtmp)
 
84
            rmtree(dtmp)