~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_outside_wt.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:
19
19
"""Black-box tests for running bzr outside of a working tree."""
20
20
 
21
21
import os
22
 
import tempfile
23
22
 
24
23
from bzrlib import (
25
24
    osutils,
32
31
    """Test that bzr gives proper errors outside of a working tree."""
33
32
 
34
33
    def test_cwd_log(self):
35
 
        tmp_dir = tempfile.mkdtemp()
 
34
        tmp_dir = osutils.mkdtemp()
36
35
        self.addCleanup(lambda: osutils.rmtree(tmp_dir))
37
36
        os.chdir(tmp_dir)
38
37
        out, err = self.run_bzr('log', retcode=3)
47
46
                         u' "%s".\n' % url, err)
48
47
 
49
48
    def test_diff_outside_tree(self):
50
 
        tmp_dir = tempfile.mkdtemp()
 
49
        tmp_dir = osutils.mkdtemp()
51
50
        self.addCleanup(lambda: osutils.rmtree(tmp_dir))
52
51
        os.chdir(tmp_dir)
53
52
        self.run_bzr('init branch1')