Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/utest_sasview.py

    r35ec279 raaad4c95  
    44import re 
    55import sys 
     6 
     7import logging 
     8import logging.config 
     9LOGGER_CONFIG_FILE = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'logging.ini') 
     10logging.config.fileConfig(LOGGER_CONFIG_FILE) 
     11logger = logging.getLogger(__name__) 
     12 
    613try: 
    714    import xmlrunner 
    815except: 
    9     print "xmlrunner needs to be installed to run these tests" 
    10     print "Try easy_install unittest-xml-reporting" 
     16    logger.error("xmlrunner needs to be installed to run these tests") 
     17    logger.error("Try easy_install unittest-xml-reporting") 
    1118    sys.exit(1) 
    1219 
     
    4249            continue 
    4350         
     51 
    4452        # Go through modules looking for unit tests 
    4553        module_dir = os.path.join(test_root, d, "test") 
Note: See TracChangeset for help on using the changeset viewer.