Skip to content

Commit

Permalink
Use deepcopy() instead of copy()
Browse files Browse the repository at this point in the history
  • Loading branch information
manykarim authored Jul 31, 2024
1 parent d2572cb commit 745f06b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class CopyTest(SuiteVisitor):
"""Copy and modify tests in the test suite."""
for test in suite.tests:
if "copy" not in test.tags:
test_case = suite.tests.append(test.copy())
test_case = suite.tests.append(test.deepcopy())
test_case.tags.add("copy")
test_case.name = f"{test_case.name} (copy)"
```
Expand Down

0 comments on commit 745f06b

Please sign in to comment.