source: orange/Orange/testing/unit/tests/__init__.py @ 11582:12ecb82d93d7

Revision 11582:12ecb82d93d7, 308 bytes checked in by astaric, 11 months ago (diff)

Python2.6 compatibilty.

Line 
1import os
2import unittest
3if not hasattr(unittest.TestLoader, 'discover'):
4    import unittest2 as unittest
5
6
7def suite():
8    test_dir = os.path.dirname(__file__)
9    return unittest.TestLoader().discover(test_dir, )
10
11test_suite = suite()
12
13
14if __name__ == '__main__':
15    unittest.main(defaultTest='suite')
Note: See TracBrowser for help on using the repository browser.