<div dir="ltr"><div><br></div><div>I'm seeing an odd behavior on v0.45, when trying to load a yaml file in an instrumented test the yaml content gets converted to a list of MuxTreeNodes rather than a dictionary.</div><div><br>here's a simple example</div><div><br></div><div>mytest.py</div><div><br></div><div><div>#!/bin/env python</div><div>import yaml</div><div>from avocado import Test</div><div><br></div><div>class MyTest(Test):</div><div><br></div><div>    def test(self):</div><div>        with open("some.yaml") as f:</div><div>            d = yaml.load(f)</div><div>        print(type(d))</div><div>        print(d)</div></div><div><br></div><div><br></div><div>some.yaml:</div><div><br></div><div><div>key1:</div><div>  subkey: subval</div><div>key2:</div><div>  subkey: subval</div></div><div><br></div><div>An empty.yaml file</div><div><br></div><div>Run: avocado run --show-job-log mytest.py --mux-yaml empty.yaml</div><div><br></div><div>Relevant output: </div><div><br></div><div>START 1-d.py:MyTest.test</div><div><class 'avocado.plugins.yaml_to_mux.ListOfNodeObjects'></div><div>[MuxTreeNode(name='key1'), MuxTreeNode(name='key2')]</div><div>PASS 1-d.py:MyTest.test </div><div><br></div><div>If I drop the mux-yaml option then the output looks like what I'd expect</div><div><br></div><div><div>START 1-d.py:MyTest.test</div><div><type 'dict'></div><div>{'key2': {'subkey': 'subval'}, 'key1': {'subkey': 'subval'}}</div><div>PASS 1-d.py:MyTest.test</div></div><div><br></div><div><br></div><div>--mux-yaml seems to intercept all yaml conversions, this is not desirable in my case as I lose the ability to use yaml in my test, my apologies for not doing much research on whether this is a known, please let me know if I missed the obvious or how I can work around it</div><div><br></div><div>Thanks</div><div><br></div><div>Vincent</div><div><br></div></div>