Changes in test/utest_sasview.py [35ec279:aaad4c95] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/utest_sasview.py
r35ec279 raaad4c95 4 4 import re 5 5 import sys 6 7 import logging 8 import logging.config 9 LOGGER_CONFIG_FILE = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'logging.ini') 10 logging.config.fileConfig(LOGGER_CONFIG_FILE) 11 logger = logging.getLogger(__name__) 12 6 13 try: 7 14 import xmlrunner 8 15 except: 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") 11 18 sys.exit(1) 12 19 … … 42 49 continue 43 50 51 44 52 # Go through modules looking for unit tests 45 53 module_dir = os.path.join(test_root, d, "test")
Note: See TracChangeset
for help on using the changeset viewer.