From: Marc Fiuczynski Date: Fri, 8 Feb 2008 20:08:06 +0000 (+0000) Subject: move the invocation of Config() into the __init__ function to delay invoking that... X-Git-Tag: 2008-02-11-last-vmware-support~5 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=27d59f8b5e041445077e913fecbdcda09a7f5d82;p=tests.git move the invocation of Config() into the __init__ function to delay invoking that until runtime vs. module import time --- diff --git a/qaapi/qa/tests/Test.py b/qaapi/qa/tests/Test.py index 08f49f1..41188d7 100644 --- a/qaapi/qa/tests/Test.py +++ b/qaapi/qa/tests/Test.py @@ -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