~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/__init__.py

  • Committer: Aaron Bentley
  • Date: 2005-09-29 16:16:56 UTC
  • mto: (147.2.17)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: abentley@panoramicfeedback.com-20050929161656-0aa948c2f00f3655
Fixed import issues w/ PyBaz

Show diffs side-by-side

added added

removed removed

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