# HG changeset patch # User domruf # Date 2016-03-02 18:51:58 # Node ID 83dbf427f1dceb430c4c05ceb6e08ac1dd036b69 # Parent 2d92227f576da32e6a59d32445a103df66593ce3 tests: load fixture in binary mode - otherwise \r would be filtered on Windows diff --git a/kallithea/tests/fixture.py b/kallithea/tests/fixture.py --- a/kallithea/tests/fixture.py +++ b/kallithea/tests/fixture.py @@ -259,7 +259,7 @@ class Fixture(object): 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()