File: __init__.py

package info (click to toggle)
bzrtools 0.11.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 508 kB
  • ctags: 560
  • sloc: python: 4,863; sh: 11; makefile: 8
file content (19 lines) | stat: -rw-r--r-- 701 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
def test_suite():
    try:
        from bzrtools.tests.errors import NoPyBaz
        import bzrtools.tests.test_baz_import
        return bzrtools.tests.test_baz_import.test_suite()
    except ImportError:
    	try:
            from bzrlib.plugins.bzrtools.errors import NoPyBaz
            import bzrlib.plugins.bzrtools.tests.test_baz_import
            return bzrlib.plugins.bzrtools.tests.test_baz_import.test_suite()
	except ImportError:
            from unittest import TestSuite
            return TestSuite()
        except NoPyBaz:
            from unittest import TestSuite
            return TestSuite()
    except NoPyBaz:
        from unittest import TestSuite
        return TestSuite()