~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-03-22 15:44:11 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060322154411-a748af8ce631695b
Updated to run all tests from test.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
def test_suite():
2
2
    try:
3
 
        import bzrlib.plugins.bzrtools.tests.test_baz_import
 
3
        import bzrtools.tests.test_baz_import
 
4
        return bzrtools.tests.test_baz_import.test_suite()
4
5
    except ImportError:
5
 
        from unittest import TestSuite
6
 
        return TestSuite()
7
 
    return bzrlib.plugins.bzrtools.tests.test_baz_import.test_suite()
 
6
        try:
 
7
            import bzrlib.plugins.bzrtools.tests.test_baz_import
 
8
            return bzrlib.plugins.bzrtools.tests.test_baz_import.test_suite()
 
9
        except ImportError:
 
10
            from unittest import TestSuite
 
11
            return TestSuite()