Skip to content

Commit 60111ac

Browse files
committed
do not use deepcopy for a string
1 parent 66c3801 commit 60111ac

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/integration/plots/test_plots.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,11 @@ def _assert_templates_equal(
131131
paths = [["data", "values"], ["encoding", "color"]]
132132
tmp1 = deepcopy(html_template)
133133
tmp2 = deepcopy(filled_template)
134-
tmp3 = deepcopy(split_template)
135134
tmp3 = json.loads(
136-
tmp3.replace("<DVC_METRIC_X_LABEL>", x_label).replace(
137-
"<DVC_METRIC_Y_LABEL>", y_label
138-
)
135+
split_template[:]
136+
.replace("<DVC_METRIC_X_LABEL>", x_label)
137+
.replace("<DVC_METRIC_Y_LABEL>", y_label)
139138
)
140-
141139
for path in paths:
142140
dpath.set(tmp1, path, {})
143141
dpath.set(tmp2, path, {})

0 commit comments

Comments
 (0)