mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed all E261 warnings
This commit is contained in:
parent
c3791463a5
commit
8eec2d93b6
152 changed files with 630 additions and 630 deletions
|
@ -7,5 +7,5 @@ class BrokenException(Exception):
|
|||
|
||||
except_args = (b'Broken!', # plain exception with ASCII text
|
||||
'¡Broken!', # non-ASCII unicode data
|
||||
'¡Broken!'.encode('utf-8'), # non-ASCII, utf-8 encoded bytestring
|
||||
'¡Broken!'.encode('utf-8'), # non-ASCII, utf-8 encoded bytestring
|
||||
b'\xa1Broken!', ) # non-ASCII, latin1 bytestring
|
||||
|
|
|
@ -10,8 +10,8 @@ from ..models import UrlArticle
|
|||
class DefaultsTests(TestCase):
|
||||
"""Test django views in django/views/defaults.py"""
|
||||
fixtures = ['testdata.json']
|
||||
non_existing_urls = ['/views/non_existing_url/', # this is in urls.py
|
||||
'/views/other_non_existing_url/'] # this NOT in urls.py
|
||||
non_existing_urls = ['/views/non_existing_url/', # this is in urls.py
|
||||
'/views/other_non_existing_url/'] # this NOT in urls.py
|
||||
|
||||
def test_page_not_found(self):
|
||||
"A 404 status is returned by the page_not_found view"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue