summaryrefslogtreecommitdiff
path: root/tests/artifactcache/pull.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-21 09:21:02 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-25 10:43:38 +0000
commite4412977d8404a2a820c4c1c366604ab6cdc6427 (patch)
tree44f6f00edd358b42c8bd81ce4e835db9b93c2bd3 /tests/artifactcache/pull.py
parent6fb773257a715a2380d3c69b8047a672b23d9c82 (diff)
downloadbuildstream-e4412977d8404a2a820c4c1c366604ab6cdc6427.tar.gz
_yaml: Remove useless calls to '_yaml.node_sanitize'
Calling '_yaml.dump' will itself call '_yaml.node_sanitize', therefore we can remove all calls to it in places where we directly after call dump.
Diffstat (limited to 'tests/artifactcache/pull.py')
-rw-r--r--tests/artifactcache/pull.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/artifactcache/pull.py b/tests/artifactcache/pull.py
index d5f2c1f06..0b57a6c9a 100644
--- a/tests/artifactcache/pull.py
+++ b/tests/artifactcache/pull.py
@@ -73,7 +73,7 @@ def test_pull(cli, tmpdir, datafiles):
}
# Write down the user configuration file
- _yaml.dump(_yaml.node_sanitize(user_config), filename=user_config_file)
+ _yaml.dump(user_config, filename=user_config_file)
# Ensure CLI calls will use it
cli.configure(user_config)
@@ -182,7 +182,7 @@ def test_pull_tree(cli, tmpdir, datafiles):
}
# Write down the user configuration file
- _yaml.dump(_yaml.node_sanitize(user_config), filename=user_config_file)
+ _yaml.dump(user_config, filename=user_config_file)
# Ensure CLI calls will use it
cli.configure(user_config)