Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/unit/tests/__init__.py

    r9679 r11582  
     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 TracChangeset for help on using the changeset viewer.