~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Martin Pool
  • Date: 2005-08-24 02:34:24 UTC
  • Revision ID: mbp@sourcefrog.net-20050824023424-67667e2b57c3d7d0
- merge test refactoring from robertc

  More of the common test infrastructure to do with 
  making temporary directories, etc, is now done from a 
  TestCase subclass, and generally have less magic
  compared to unittest. 

robertc@robertcollins.net-20050823111339-fb55b8ce170b20e0

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
 
18
 
from testsweet import TestBase, run_suite, InTempDir
 
18
from testsweet import TestCase, run_suite, InTempDir
19
19
import bzrlib.commands
20
20
import bzrlib.fetch
21
21
 
65
65
        if m not in MODULES_TO_DOCTEST:
66
66
            MODULES_TO_DOCTEST.append(m)
67
67
 
68
 
    TestBase.BZRPATH = os.path.join(os.path.realpath(os.path.dirname(bzrlib.__path__[0])), 'bzr')
69
 
    print '%-30s %s' % ('bzr binary', TestBase.BZRPATH)
 
68
    TestCase.BZRPATH = os.path.join(os.path.realpath(os.path.dirname(bzrlib.__path__[0])), 'bzr')
 
69
    print '%-30s %s' % ('bzr binary', TestCase.BZRPATH)
70
70
 
71
71
    print
72
72