[Yaml] Fix tests py26 BC break