[1.11.x] Fixed E117 flake8 warnings.
This commit is contained in:
parent
d718f5203e
commit
1b8a26efa2
@ -1029,15 +1029,15 @@ class TestCase(TransactionTestCase):
|
||||
|
||||
if cls.fixtures:
|
||||
for db_name in cls._databases_names(include_mirrors=False):
|
||||
try:
|
||||
call_command('loaddata', *cls.fixtures, **{
|
||||
'verbosity': 0,
|
||||
'commit': False,
|
||||
'database': db_name,
|
||||
})
|
||||
except Exception:
|
||||
cls._rollback_atomics(cls.cls_atomics)
|
||||
raise
|
||||
try:
|
||||
call_command('loaddata', *cls.fixtures, **{
|
||||
'verbosity': 0,
|
||||
'commit': False,
|
||||
'database': db_name,
|
||||
})
|
||||
except Exception:
|
||||
cls._rollback_atomics(cls.cls_atomics)
|
||||
raise
|
||||
try:
|
||||
cls.setUpTestData()
|
||||
except Exception:
|
||||
|
@ -567,7 +567,7 @@ class TestManagerDeprecations(TestCase):
|
||||
warnings.simplefilter('always', RemovedInDjango20Warning)
|
||||
|
||||
class MyModel(ConcreteParentWithoutManager):
|
||||
pass
|
||||
pass
|
||||
self.assertEqual(len(warns), 0)
|
||||
|
||||
# Should create 'objects' (set as default) and warn that
|
||||
|
Loading…
x
Reference in New Issue
Block a user