mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21285 -- Fixed E121,E122 pep8 warnings
This commit is contained in:
committed by
Tim Graham
parent
d97bec5ee3
commit
dfb4cb9970
@@ -282,8 +282,7 @@ class SimpleTestCase(unittest.TestCase):
|
||||
" response code was %d (expected %d)" %
|
||||
(path, redirect_response.status_code, target_status_code))
|
||||
|
||||
e_scheme, e_netloc, e_path, e_query, e_fragment = urlsplit(
|
||||
expected_url)
|
||||
e_scheme, e_netloc, e_path, e_query, e_fragment = urlsplit(expected_url)
|
||||
if not (e_scheme or e_netloc):
|
||||
expected_url = urlunsplit(('http', host or 'testserver', e_path,
|
||||
e_query, e_fragment))
|
||||
@@ -850,10 +849,10 @@ class TestCase(TransactionTestCase):
|
||||
try:
|
||||
call_command('loaddata', *self.fixtures,
|
||||
**{
|
||||
'verbosity': 0,
|
||||
'commit': False,
|
||||
'database': db_name,
|
||||
'skip_validation': True,
|
||||
'verbosity': 0,
|
||||
'commit': False,
|
||||
'database': db_name,
|
||||
'skip_validation': True,
|
||||
})
|
||||
except Exception:
|
||||
self._fixture_teardown()
|
||||
|
||||
Reference in New Issue
Block a user