move the invocation of Config() into the __init__ function to delay invoking that...
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 8 Feb 2008 20:08:06 +0000 (20:08 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 8 Feb 2008 20:08:06 +0000 (20:08 +0000)
qaapi/qa/tests/Test.py

index 08f49f1..41188d7 100644 (file)
@@ -30,7 +30,8 @@ class Test:
        """
        return True
 
-    def __init__(self, config = Config()):
+    def __init__(self, config = None):
+        if config is None: config = Config()
        self.name = self.__class__.__name__
        self.path=os.path.abspath(os.path.dirname(sys.argv[0]))
        self.config = config