Skip to content

Commit 39c8420

Browse files
committed
Fix a codec issue in Py3
1 parent 7454e10 commit 39c8420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbtemplates/test_cases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_sync_templates(self):
124124
call_command('sync_templates', force=True,
125125
verbosity=0, overwrite=DATABASE_TO_FILES)
126126
self.assertTrue(
127-
'modified' in codecs.open(temp_template_path).read())
127+
'modified' in codecs.open(temp_template_path, 'utf-8').read().decode('utf-8'))
128128

129129
call_command('sync_templates', force=True, verbosity=0,
130130
delete=True, overwrite=DATABASE_TO_FILES)

0 commit comments

Comments
 (0)