Mercurial > kallithea
changeset 5745:83dbf427f1dc
tests: load fixture in binary mode - otherwise \r would be filtered on Windows
author | domruf <dominikruf@gmail.com> |
---|---|
date | Wed, 02 Mar 2016 18:51:58 +0100 |
parents | 2d92227f576d |
children | e5f525856315 |
files | kallithea/tests/fixture.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/fixture.py Wed Mar 02 19:50:51 2016 +0100 +++ b/kallithea/tests/fixture.py Wed Mar 02 18:51:58 2016 +0100 @@ -259,7 +259,7 @@ Session().commit() def load_resource(self, resource_name, strip=True): - with open(os.path.join(FIXTURES, resource_name)) as f: + with open(os.path.join(FIXTURES, resource_name), 'rb') as f: source = f.read() if strip: source = source.strip()