# HG changeset patch # User Ludovic Chabant # Date 1438152969 25200 # Node ID 1f37f66204b804ddfc686eb7155a66569ba98462 # Parent 6f1f45fb77906610939b3d6b8b016b3cb2cec736 tests: Help the Yaml loader figure out the encoding on Windows. diff -r 6f1f45fb7790 -r 1f37f66204b8 tests/conftest.py --- a/tests/conftest.py Tue Jul 28 22:16:22 2015 -0700 +++ b/tests/conftest.py Tue Jul 28 23:56:09 2015 -0700 @@ -46,7 +46,7 @@ class YamlTestFileBase(pytest.File): def collect(self): - spec = yaml.load_all(self.fspath.open()) + spec = yaml.load_all(self.fspath.open(encoding='utf8')) for i, item in enumerate(spec): name = '%s_%d' % (self.fspath.basename, i) if 'test_name' in item: