This is an automated email from the ASF dual-hosted git repository.

juergbi pushed a commit to branch juerg/update-fixes
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 5604360cb654eb9a02d3e584ebfcbac9938c0925
Author: Jürg Billeter <[email protected]>
AuthorDate: Fri Jul 26 14:55:01 2024 +0200

    _testing/runcli.py: Use `_yaml.roundtrip_dump()` to work with new ruamel
    
    `yaml.safe_dump()` has been removed.
---
 src/buildstream/_testing/runcli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/buildstream/_testing/runcli.py 
b/src/buildstream/_testing/runcli.py
index 2443e9093..d91e40034 100644
--- a/src/buildstream/_testing/runcli.py
+++ b/src/buildstream/_testing/runcli.py
@@ -549,7 +549,7 @@ class CliIntegration(Cli):
 
                 temp_project = os.path.join(scratchdir, "project.conf")
                 with open(temp_project, "w", encoding="utf-8") as f:
-                    yaml.safe_dump(project_config, f)
+                    _yaml.roundtrip_dump(project_config, f)
 
                 project_config = _yaml.load(temp_project, 
shortname="project.conf")
 

Reply via email to