summaryrefslogtreecommitdiff
path: root/tests/internals
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-10 16:54:06 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commitee642d79724495343521949f1268b9a7068c267f (patch)
treea2949775a91cb8b17c35f97bcde0ee8e384a44e4 /tests/internals
parent71cffad863f89d1d53115bb3af36c0d0cf70ce6a (diff)
downloadbuildstream-ee642d79724495343521949f1268b9a7068c267f.tar.gz
node: Rename 'copy' to 'clone'
A 'clone' operation has an implicit understanding that it is expensive, which is not the case of a 'copy' operation, which is more usually a shallow copy. Therefore renaming to 'clone'
Diffstat (limited to 'tests/internals')
-rw-r--r--tests/internals/yaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/internals/yaml.py b/tests/internals/yaml.py
index bf7ccf98d..d94d006e3 100644
--- a/tests/internals/yaml.py
+++ b/tests/internals/yaml.py
@@ -182,7 +182,7 @@ def test_composite_preserve_originals(datafiles):
base = _yaml.load(filename)
overlay = _yaml.load(overlayfile)
- base_copy = base.copy()
+ base_copy = base.clone()
overlay._composite(base_copy)
copy_extra = base_copy.get_mapping('extra')