mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Removed unneeded force_text calls in the test suite
This commit is contained in:
parent
5b95d421f7
commit
2366100872
32 changed files with 132 additions and 165 deletions
|
@ -16,7 +16,6 @@ from django.db.migrations.exceptions import (
|
|||
)
|
||||
from django.db.migrations.recorder import MigrationRecorder
|
||||
from django.test import override_settings
|
||||
from django.utils.encoding import force_text
|
||||
|
||||
from .models import UnicodeModel, UnserializableModel
|
||||
from .routers import TestRouter
|
||||
|
@ -649,7 +648,7 @@ class MakeMigrationsTests(MigrationTestBase):
|
|||
self.assertTrue(os.path.exists(init_file))
|
||||
|
||||
with open(init_file, 'r') as fp:
|
||||
content = force_text(fp.read())
|
||||
content = fp.read()
|
||||
self.assertEqual(content, '')
|
||||
|
||||
# Check for existing 0001_initial.py file in migration folder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue