Mercurial > piecrust2
changeset 530:1f37f66204b8
tests: Help the Yaml loader figure out the encoding on Windows.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 28 Jul 2015 23:56:09 -0700 |
parents | 6f1f45fb7790 |
children | 63ae5eae90ca |
files | tests/conftest.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: