~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-03-24 14:06:54 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060324140654-cc9a6b0e8bd1f60a
Improved cbranch docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
def test_suite():
2
2
    try:
3
 
        from bzrtools.tests.errors import NoPyBaz
4
3
        import bzrtools.tests.test_baz_import
5
4
        return bzrtools.tests.test_baz_import.test_suite()
6
5
    except ImportError:
7
6
        try:
8
 
            from bzrlib.plugins.bzrtools.errors import NoPyBaz
9
7
            import bzrlib.plugins.bzrtools.tests.test_baz_import
10
8
            return bzrlib.plugins.bzrtools.tests.test_baz_import.test_suite()
11
9
        except ImportError:
12
10
            from unittest import TestSuite
13
11
            return TestSuite()
14
 
        except NoPyBaz:
15
 
            from unittest import TestSuite
16
 
            return TestSuite()
17
 
    except NoPyBaz:
18
 
        from unittest import TestSuite
19
 
        return TestSuite()