From 27d59f8b5e041445077e913fecbdcda09a7f5d82 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Fri, 8 Feb 2008 20:08:06 +0000 Subject: [PATCH] move the invocation of Config() into the __init__ function to delay invoking that until runtime vs. module import time --- qaapi/qa/tests/Test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.0