Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 231f0f7

Browse files
committed
Fix for an Issue #119
1 parent cba7741 commit 231f0f7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,7 @@ def getSortedInjectionTests():
24472447
messages
24482448
"""
24492449

2450-
retVal = conf.tests
2450+
retVal = copy.deepcopy(conf.tests)
24512451

24522452
def priorityFunction(test):
24532453
retVal = SORT_ORDER.FIRST

lib/core/datatype.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,16 @@ def __setstate__(self, dict):
6666
def __deepcopy__(self, memo):
6767
retVal = self.__class__()
6868
memo[id(self)] = retVal
69+
6970
for attr in dir(self):
7071
if not attr.startswith('_'):
7172
value = getattr(self, attr)
7273
if not isinstance(value, (types.BuiltinFunctionType, types.BuiltinFunctionType, types.FunctionType, types.MethodType)):
7374
setattr(retVal, attr, copy.deepcopy(value, memo))
7475

76+
for key, value in self.items():
77+
retVal.__setitem__(key, copy.deepcopy(value, memo))
78+
7579
return retVal
7680

7781
class InjectionDict(AttribDict):

0 commit comments

Comments
 (0)