Fix for an Issue #119

This commit is contained in:
Miroslav Stampar 2012-07-26 00:49:51 +02:00
parent cba77410a9
commit 231f0f76b5
2 changed files with 5 additions and 1 deletions

View File

@ -2447,7 +2447,7 @@ def getSortedInjectionTests():
messages
"""
retVal = conf.tests
retVal = copy.deepcopy(conf.tests)
def priorityFunction(test):
retVal = SORT_ORDER.FIRST

View File

@ -66,12 +66,16 @@ class AttribDict(dict):
def __deepcopy__(self, memo):
retVal = self.__class__()
memo[id(self)] = retVal
for attr in dir(self):
if not attr.startswith('_'):
value = getattr(self, attr)
if not isinstance(value, (types.BuiltinFunctionType, types.BuiltinFunctionType, types.FunctionType, types.MethodType)):
setattr(retVal, attr, copy.deepcopy(value, memo))
for key, value in self.items():
retVal.__setitem__(key, copy.deepcopy(value, memo))
return retVal
class InjectionDict(AttribDict):