--- a/web/test/unittest_views_staticcontrollers.py Wed Sep 16 16:07:29 2015 +0200
+++ b/web/test/unittest_views_staticcontrollers.py Tue Sep 22 14:18:14 2015 +0200
@@ -120,12 +120,12 @@
yield res, req
def expected_content(self, js_files):
- content = u''
+ content = b''
for js_file in js_files:
dirpath, rid = self.config.locate_resource(js_file)
if dirpath is not None: # ignore resources not found
- with open(osp.join(dirpath, rid)) as f:
- content += f.read() + '\n'
+ with open(osp.join(dirpath, rid), 'rb') as f:
+ content += f.read() + b'\n'
return content
def test_cache(self):