~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-05-30 04:27:26 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20060530042726-fe0fe8ff819fb189
Got test suite running with PyBaz unavailable

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 PyBaz
3
4
        import bzrtools.tests.test_baz_import
4
5
        return bzrtools.tests.test_baz_import.test_suite()
5
6
    except ImportError:
6
7
        try:
 
8
            from bzrtools.tests.errors import PyBaz
7
9
            import bzrlib.plugins.bzrtools.tests.test_baz_import
8
10
            return bzrlib.plugins.bzrtools.tests.test_baz_import.test_suite()
9
11
        except ImportError:
10
12
            from unittest import TestSuite
11
13
            return TestSuite()
 
14
    except NoPyBaz:
 
15
        from unittest import TestSuite
 
16
        return TestSuite()