diff tests/conftest.py @ 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 bab91fcef741
children cc6f3dbe3048
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: