upgrade to python3;add some validator examples
This commit is contained in:
@@ -13,7 +13,7 @@ class OJTestCase(unittest.TestCase):
|
||||
logger.addHandler(hdlr)
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
execfile(os.path.join('..', 'testdata', 'test_config.py'))
|
||||
exec(open(os.path.join('..', 'testdata', 'test_config.py')).read())
|
||||
self.config = getConfig()
|
||||
self.ds = self.config.datasources[0]
|
||||
self.dbname = os.path.join('..', 'testdata', self.config.testdb)
|
||||
|
||||
Reference in New Issue
Block a user