diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-28 17:01:23 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:03 +0000 |
commit | f7b461220ec2f1af3966ace12c21334f1f3b6457 (patch) | |
tree | 2a3bb23cb1f26aa55fac6d5df2f95fb862755685 /tests/artifactcache/push.py | |
parent | 9e5facfab87268a80cb02f2de87897764a416c8a (diff) | |
download | buildstream-f7b461220ec2f1af3966ace12c21334f1f3b6457.tar.gz |
tests: Change all calls to _yaml.dump to _yaml.rountrip_dump
Now that both are equivalent, we can skip the sanitization part before
the yaml call.
Diffstat (limited to 'tests/artifactcache/push.py')
-rw-r--r-- | tests/artifactcache/push.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py index a54c1df09..9b976c490 100644 --- a/tests/artifactcache/push.py +++ b/tests/artifactcache/push.py @@ -66,7 +66,7 @@ def test_push(cli, tmpdir, datafiles): } # Write down the user configuration file - _yaml.dump(user_config, filename=user_config_file) + _yaml.roundtrip_dump(user_config, file=user_config_file) # Fake minimal context context = Context() @@ -164,7 +164,7 @@ def test_push_message(tmpdir, datafiles): } # Write down the user configuration file - _yaml.dump(user_config, filename=user_config_file) + _yaml.roundtrip_dump(user_config, file=user_config_file) queue = multiprocessing.Queue() # Use subprocess to avoid creation of gRPC threads in main BuildStream process |