Kaydet (Commit) 0a515b02 authored tarafından Tim Graham's avatar Tim Graham

[1.7.x] Fixed flake8 errors.

Backport of 4b25ebf1 from master
üst a11ed8dc
...@@ -412,6 +412,7 @@ class BaseDatabaseCreation(object): ...@@ -412,6 +412,7 @@ class BaseDatabaseCreation(object):
app_config.name not in settings.TEST_NON_SERIALIZED_APPS app_config.name not in settings.TEST_NON_SERIALIZED_APPS
): ):
app_list.append((app_config, None)) app_list.append((app_config, None))
# Make a function to iteratively return every object # Make a function to iteratively return every object
def get_objects(): def get_objects():
for model in sort_dependencies(app_list): for model in sort_dependencies(app_list):
......
...@@ -842,7 +842,6 @@ class TransactionTestCase(SimpleTestCase): ...@@ -842,7 +842,6 @@ class TransactionTestCase(SimpleTestCase):
allow_cascade=self.available_apps is not None, allow_cascade=self.available_apps is not None,
inhibit_post_migrate=self.available_apps is not None) inhibit_post_migrate=self.available_apps is not None)
def assertQuerysetEqual(self, qs, values, transform=repr, ordered=True, msg=None): def assertQuerysetEqual(self, qs, values, transform=repr, ordered=True, msg=None):
items = six.moves.map(transform, qs) items = six.moves.map(transform, qs)
if not ordered: if not ordered:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment