tests.py
changeset 75 39f777341db4
parent 50 f71d3abbb18f
child 83 515fadd3d286
equal deleted inserted replaced
74:d4306261ddfb 75:39f777341db4
     7 from tests import test_prettysize
     7 from tests import test_prettysize
     8 
     8 
     9 enable_mysql = True
     9 enable_mysql = True
    10 try:
    10 try:
    11     from tests import test_mymanager
    11     from tests import test_mymanager
    12 except ImportError:
    12 except ImportError as e:
       
    13     print('Disabling MySQL tests due to import error:\n ', str(e))
    13     enable_mysql = False
    14     enable_mysql = False
    14 
    15 
    15 loader = unittest.TestLoader()
    16 loader = unittest.TestLoader()
    16 
    17 
    17 suite = unittest.TestSuite()
    18 suite = unittest.TestSuite()