mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #21298 -- Fixed E301 pep8 warnings
This commit is contained in:
parent
317040a73b
commit
c3aa2948c6
83 changed files with 180 additions and 2 deletions
|
@ -184,6 +184,7 @@ TEST_DATA = (
|
|||
def create_simple_test_method(validator, expected, value, num):
|
||||
if expected is not None and issubclass(expected, Exception):
|
||||
test_mask = 'test_%s_raises_error_%d'
|
||||
|
||||
def test_func(self):
|
||||
# assertRaises not used, so as to be able to produce an error message
|
||||
# containing the tested value
|
||||
|
@ -196,6 +197,7 @@ def create_simple_test_method(validator, expected, value, num):
|
|||
expected.__name__, value))
|
||||
else:
|
||||
test_mask = 'test_%s_%d'
|
||||
|
||||
def test_func(self):
|
||||
try:
|
||||
self.assertEqual(expected, validator(value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue