~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_interrepository/__init__.py

  • Committer: Martin Pool
  • Date: 2010-04-01 04:41:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5128.
  • Revision ID: mbp@sourcefrog.net-20100401044118-shyctqc02ob08ngz
ignore .testrepository

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006 Canonical Ltd
2
2
# Authors: Robert Collins <robert.collins@canonical.com>
3
3
# -*- coding: utf-8 -*-
4
4
#
26
26
"""
27
27
 
28
28
 
29
 
from bzrlib import transport
30
29
from bzrlib.errors import (
31
30
    FileExists,
32
31
    UninitializableFormat,
39
38
                          default_transport,
40
39
                          multiply_tests,
41
40
                          )
42
 
from bzrlib.tests.per_controldir.test_controldir import TestCaseWithControlDir
 
41
from bzrlib.tests.per_bzrdir.test_bzrdir import TestCaseWithBzrDir
 
42
from bzrlib.transport import get_transport
43
43
 
44
44
 
45
45
def make_scenarios(transport_server, transport_readonly_server, formats):
128
128
    return result
129
129
 
130
130
 
131
 
class TestCaseWithInterRepository(TestCaseWithControlDir):
 
131
class TestCaseWithInterRepository(TestCaseWithBzrDir):
132
132
 
133
133
    def setUp(self):
134
134
        super(TestCaseWithInterRepository, self).setUp()
143
143
            segments = url.split('/')
144
144
            if segments and segments[-1] not in ('', '.'):
145
145
                parent = '/'.join(segments[:-1])
146
 
                t = transport.get_transport(parent)
 
146
                t = get_transport(parent)
147
147
                try:
148
148
                    t.mkdir(segments[-1])
149
149
                except FileExists: