mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed E305 flake8 warnings.
This commit is contained in:
committed by
Tim Graham
parent
6072de727f
commit
967be82443
@@ -269,6 +269,7 @@ TEST_DATA = [
|
||||
def create_path(filename):
|
||||
return os.path.abspath(os.path.join(os.path.dirname(upath(__file__)), filename))
|
||||
|
||||
|
||||
# Add valid and invalid URL tests.
|
||||
# This only tests the validator without extended schemes.
|
||||
with io.open(create_path('valid_urls.txt'), encoding='utf8') as f:
|
||||
@@ -340,6 +341,7 @@ class TestSimpleValidators(SimpleTestCase):
|
||||
with self.assertRaisesMessage(ValidationError, '"djangoproject.com" has more than 16 characters.'):
|
||||
v('djangoproject.com')
|
||||
|
||||
|
||||
test_counter = 0
|
||||
for validator, value, expected in TEST_DATA:
|
||||
name, method = create_simple_test_method(validator, expected, value, test_counter)
|
||||
|
||||
Reference in New Issue
Block a user