Skip to content

Commit 71cac84

Browse files
committed
correct urls updated
1 parent f757520 commit 71cac84

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/test_templatetags.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import unittest
22

3-
import django
43
from django.template import Context, Template
54
from django.test import TestCase, override_settings
65
from django.utils.html import urlize
@@ -250,9 +249,8 @@ def test_issue_1386(self):
250249
"asdf.com",
251250
"asdf.net",
252251
"www.as_df.org",
252+
"as.d8f.ghj8.gov",
253253
]
254-
if django.VERSION < (5, 3):
255-
correct_urls.append("as.d8f.ghj8.gov")
256254
for i in correct_urls:
257255
res = urlize(i)
258256
self.assertNotEqual(res, i)
@@ -262,8 +260,6 @@ def test_issue_1386(self):
262260
"mailto://[email protected]",
263261
"asdf.netnet",
264262
]
265-
if django.VERSION >= (5, 3):
266-
incorrect_urls.append("as.d8f.ghj8.gov")
267263
for i in incorrect_urls:
268264
res = urlize(i)
269265
self.assertEqual(i, res)

0 commit comments

Comments
 (0)