Changeset 11580:3c0351009340 in orange


Ignore:
Timestamp:
06/03/13 19:05:16 (11 months ago)
Author:
astaric
Branch:
default
rebase_source:
a4c2c9c73a478df4f31cfbe88e8c4a260f8b60ca
Message:

Enabled running tests from setup.py.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/testing.py

    r11088 r11580  
    614614    if getattr(__IPYTHON__.shell, "call_pdb", None): # Is pdb enabled 
    615615        enable_pdb() 
    616 except NameError: 
     616except: 
    617617    pass 
    618618 
  • Orange/testing/unit/tests/__init__.py

    r9679 r11580  
     1import os 
     2import unittest 
     3 
     4 
     5def suite(): 
     6    test_dir = os.path.dirname(__file__) 
     7    return unittest.TestLoader().discover(test_dir, ) 
     8 
     9test_suite = suite() 
     10 
     11 
     12if __name__ == '__main__': 
     13    unittest.main(defaultTest='suite') 
  • setup.py

    r11555 r11580  
    784784        include_package_data = True, 
    785785        zip_safe = False, 
    786  
     786        test_suite = 'Orange.testing.unit.tests.test_suite', 
    787787        cmdclass = cmdclass, 
    788788        ext_modules = ext_modules, 
Note: See TracChangeset for help on using the changeset viewer.