tests/delayedquery.py
changeset 22 680631f35d83
parent 21 26209e9984b2
child 78 64c62ac8f65d
--- a/tests/delayedquery.py	Tue Dec 06 16:45:29 2011 +0100
+++ b/tests/delayedquery.py	Tue Dec 06 17:11:21 2011 +0100
@@ -3,16 +3,11 @@
 import logging
 import time
 
+from config import Config
 from pgtoolkit import pgmanager
 from pgtoolkit.delayedquery import DelayedQuery
 
 
-class Config(dict):
-    def __init__(self, fname):
-        data = open(fname).read()
-        exec(data, dict(), self)
-
-
 if __name__ == '__main__':
     cfg = Config('tests.conf')