mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #23919 -- Removed six.PY2/PY3 usage
Thanks Tim Graham for the review.
This commit is contained in:
parent
e63d98b7be
commit
c716fe8782
111 changed files with 305 additions and 1296 deletions
|
@ -1,5 +1,3 @@
|
|||
from unittest import skipIf
|
||||
|
||||
from django.db import connection, connections
|
||||
from django.db.migrations.exceptions import (
|
||||
AmbiguityError, InconsistentMigrationHistory, NodeNotFoundError,
|
||||
|
@ -7,7 +5,6 @@ from django.db.migrations.exceptions import (
|
|||
from django.db.migrations.loader import MigrationLoader
|
||||
from django.db.migrations.recorder import MigrationRecorder
|
||||
from django.test import TestCase, modify_settings, override_settings
|
||||
from django.utils import six
|
||||
|
||||
|
||||
class RecorderTests(TestCase):
|
||||
|
@ -170,7 +167,6 @@ class LoaderTests(TestCase):
|
|||
"App with migrations module file not in unmigrated apps."
|
||||
)
|
||||
|
||||
@skipIf(six.PY2, "PY2 doesn't load empty dirs.")
|
||||
def test_load_empty_dir(self):
|
||||
with override_settings(MIGRATION_MODULES={"migrations": "migrations.faulty_migrations.namespace"}):
|
||||
loader = MigrationLoader(connection)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue