mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Fix a codec issue in Py3
This commit is contained in:
parent
7454e109ea
commit
39c8420511
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ class DbTemplatesTestCase(TestCase):
|
|||
call_command('sync_templates', force=True,
|
||||
verbosity=0, overwrite=DATABASE_TO_FILES)
|
||||
self.assertTrue(
|
||||
'modified' in codecs.open(temp_template_path).read())
|
||||
'modified' in codecs.open(temp_template_path, 'utf-8').read().decode('utf-8'))
|
||||
|
||||
call_command('sync_templates', force=True, verbosity=0,
|
||||
delete=True, overwrite=DATABASE_TO_FILES)
|
||||
|
|
|
|||
Loading…
Reference in a new issue