Changeset - 83dbf427f1dc
[Not reviewed]
default
0 1 0
domruf - 10 years ago 2016-03-02 18:51:58
dominikruf@gmail.com
tests: load fixture in binary mode - otherwise \r would be filtered on Windows
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/fixture.py
Show inline comments
 
@@ -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()
0 comments (0 inline, 0 general)