diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/profile.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/profile.py b/framework/profile.py index a6cac2cf0..8d6fd0706 100644 --- a/framework/profile.py +++ b/framework/profile.py @@ -501,11 +501,14 @@ class TestProfile(object): This method creates a copy with references to the original instance using copy.copy. This allows profiles to be "subclassed" by other profiles, without modifying the original. + + copy.deepcopy is used for the filters so the original is + actually not modified in this case. """ new = copy.copy(self) new.test_list = copy.copy(self.test_list) new.forced_test_list = copy.copy(self.forced_test_list) - new.filters = copy.copy(self.filters) + new.filters = copy.deepcopy(self.filters) return new def itertests(self): |