diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-21 09:21:02 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-25 10:43:38 +0000 |
commit | e4412977d8404a2a820c4c1c366604ab6cdc6427 (patch) | |
tree | 44f6f00edd358b42c8bd81ce4e835db9b93c2bd3 /tests/sourcecache | |
parent | 6fb773257a715a2380d3c69b8047a672b23d9c82 (diff) | |
download | buildstream-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/sourcecache')
-rw-r--r-- | tests/sourcecache/fetch.py | 6 | ||||
-rw-r--r-- | tests/sourcecache/push.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/sourcecache/fetch.py b/tests/sourcecache/fetch.py index 899e162aa..cd8a3e989 100644 --- a/tests/sourcecache/fetch.py +++ b/tests/sourcecache/fetch.py @@ -56,7 +56,7 @@ def test_source_fetch(cli, tmpdir, datafiles): }, 'cachedir': cache_dir, } - _yaml.dump(_yaml.node_sanitize(user_config), filename=user_config_file) + _yaml.dump(user_config, filename=user_config_file) cli.configure(user_config) repo = create_repo('git', str(tmpdir)) @@ -131,7 +131,7 @@ def test_fetch_fallback(cli, tmpdir, datafiles): }, 'cachedir': cache_dir, } - _yaml.dump(_yaml.node_sanitize(user_config), filename=user_config_file) + _yaml.dump(user_config, filename=user_config_file) cli.configure(user_config) repo = create_repo('git', str(tmpdir)) @@ -188,7 +188,7 @@ def test_pull_fail(cli, tmpdir, datafiles): }, 'cachedir': cache_dir, } - _yaml.dump(_yaml.node_sanitize(user_config), filename=user_config_file) + _yaml.dump(user_config, filename=user_config_file) cli.configure(user_config) repo = create_repo('git', str(tmpdir)) diff --git a/tests/sourcecache/push.py b/tests/sourcecache/push.py index 065047b1b..4c652d21e 100644 --- a/tests/sourcecache/push.py +++ b/tests/sourcecache/push.py @@ -56,7 +56,7 @@ def test_source_push(cli, tmpdir, datafiles): }, 'cachedir': cache_dir, } - _yaml.dump(_yaml.node_sanitize(user_config), filename=user_config_file) + _yaml.dump(user_config, filename=user_config_file) cli.configure(user_config) repo = create_repo('git', str(tmpdir)) @@ -116,7 +116,7 @@ def test_push_pull(cli, datafiles, tmpdir): }, 'cachedir': cache_dir, } - _yaml.dump(_yaml.node_sanitize(user_config), filename=user_config_file) + _yaml.dump(user_config, filename=user_config_file) cli.configure(user_config) # create repo to pull from @@ -162,7 +162,7 @@ def test_push_fail(cli, tmpdir, datafiles): }, 'cachedir': cache_dir, } - _yaml.dump(_yaml.node_sanitize(user_config), filename=user_config_file) + _yaml.dump(user_config, filename=user_config_file) cli.configure(user_config) # create repo to pull from |