CI: Add build environment without UTF-8 locales to travis-ci

Preventing regressions like #285
This commit is contained in:
Wolfgang Walther
2020-07-20 13:57:06 +02:00
committed by GitHub
parent 8b758d4e7e
commit b80997eba6
3 changed files with 21 additions and 10 deletions

View File

@@ -57,7 +57,7 @@ def build_temp_workspace(files):
tempdir = tempfile.mkdtemp(prefix='yamllint-tests-')
for path, content in files.items():
path = os.path.join(tempdir, path)
path = os.path.join(tempdir, path).encode('utf-8')
if not os.path.exists(os.path.dirname(path)):
os.makedirs(os.path.dirname(path))