Flake8 fixes -- including not runnign flake8 over a backported file
This commit is contained in:
parent
0be7f57a90
commit
bc742ca110
|
@ -39,7 +39,6 @@ from django.conf import settings
|
||||||
from django.core.signals import request_finished
|
from django.core.signals import request_finished
|
||||||
from django.utils._os import upath
|
from django.utils._os import upath
|
||||||
from django.utils.importlib import import_module
|
from django.utils.importlib import import_module
|
||||||
from django.utils.translation.trans_real import all_locale_paths
|
|
||||||
from django.utils import six
|
from django.utils import six
|
||||||
try:
|
try:
|
||||||
from django.utils.six.moves import _thread as thread
|
from django.utils.six.moves import _thread as thread
|
||||||
|
|
|
@ -3,7 +3,7 @@ doc_files = docs extras AUTHORS INSTALL LICENSE README.rst
|
||||||
install-script = scripts/rpm-install.sh
|
install-script = scripts/rpm-install.sh
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py,./django/conf/app_template/*
|
exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./django/utils/lru_cache.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py,./django/conf/app_template/*
|
||||||
ignore=E124,E125,E127,E128,E501,W601
|
ignore=E124,E125,E127,E128,E501,W601
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
|
|
|
@ -566,14 +566,12 @@ class ErrorHandlerResolutionTests(TestCase):
|
||||||
self.callable_resolver = RegexURLResolver(r'^$', urlconf_callables)
|
self.callable_resolver = RegexURLResolver(r'^$', urlconf_callables)
|
||||||
|
|
||||||
def test_named_handlers(self):
|
def test_named_handlers(self):
|
||||||
from .views import empty_view
|
|
||||||
handler = (empty_view, {})
|
handler = (empty_view, {})
|
||||||
self.assertEqual(self.resolver.resolve400(), handler)
|
self.assertEqual(self.resolver.resolve400(), handler)
|
||||||
self.assertEqual(self.resolver.resolve404(), handler)
|
self.assertEqual(self.resolver.resolve404(), handler)
|
||||||
self.assertEqual(self.resolver.resolve500(), handler)
|
self.assertEqual(self.resolver.resolve500(), handler)
|
||||||
|
|
||||||
def test_callable_handers(self):
|
def test_callable_handers(self):
|
||||||
from .views import empty_view
|
|
||||||
handler = (empty_view, {})
|
handler = (empty_view, {})
|
||||||
self.assertEqual(self.callable_resolver.resolve400(), handler)
|
self.assertEqual(self.callable_resolver.resolve400(), handler)
|
||||||
self.assertEqual(self.callable_resolver.resolve404(), handler)
|
self.assertEqual(self.callable_resolver.resolve404(), handler)
|
||||||
|
|
Loading…
Reference in New Issue