depot/third_party/nixpkgs/pkgs/development/python-modules/zcs/fix-test-yaml.patch
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

13 lines
485 B
Diff

diff --git a/test/test_zcs.py b/test/test_zcs.py
index e4981d3..893999f 100644
--- a/test/test_zcs.py
+++ b/test/test_zcs.py
@@ -65,7 +65,7 @@ class TestCfgNode(unittest.TestCase):
cfg = self.cfg.clone()
yamlp = pathjoin(tmpboxx(), "test.yaml")
cfg.dump(yamlp)
- cfg_dict = yaml.load(open(yamlp))
+ cfg_dict = yaml.load(open(yamlp), yaml.Loader)
cfgd = CfgNode(cfg_dict)
self.assertTrue(str(cfg.dump()) == str(cfgd.dump()))