summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validators')
-rw-r--r--tests/validators/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py
index d5fb2215ca..2f26efcaa5 100644
--- a/tests/validators/tests.py
+++ b/tests/validators/tests.py
@@ -1,4 +1,3 @@
-import io
import os
import re
import types
@@ -269,10 +268,10 @@ def create_path(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:
+with open(create_path('valid_urls.txt'), encoding='utf8') as f:
for url in f:
TEST_DATA.append((URLValidator(), url.strip(), None))
-with io.open(create_path('invalid_urls.txt'), encoding='utf8') as f:
+with open(create_path('invalid_urls.txt'), encoding='utf8') as f:
for url in f:
TEST_DATA.append((URLValidator(), url.strip(), ValidationError))