~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_outside_wt.py

Merge cleanup into description

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        tmp_dir = osutils.realpath(osutils.mkdtemp())
37
37
        # We expect a read-to-root attempt to occur.
38
38
        self.permit_url('file:///')
39
 
        self.addCleanup(lambda: osutils.rmtree(tmp_dir))
 
39
        self.addCleanup(osutils.rmtree, tmp_dir)
40
40
        out, err = self.run_bzr('log', retcode=3, working_dir=tmp_dir)
41
41
        self.assertEqual(u'bzr: ERROR: Not a branch: "%s/".\n'
42
42
                         % (tmp_dir,),
57
57
        # false and may cause test failures).
58
58
        # Watch out for tricky test dir (on OSX /tmp -> /private/tmp)
59
59
        tmp_dir = osutils.realpath(osutils.mkdtemp())
60
 
        self.addCleanup(lambda: osutils.rmtree(tmp_dir))
 
60
        self.addCleanup(osutils.rmtree, tmp_dir)
61
61
        # We expect a read-to-root attempt to occur.
62
62
        self.permit_url('file:///')
63
63
        expected_error = u'bzr: ERROR: Not a branch: "%s/branch2/".\n' % tmp_dir