From c612c3da9bb739a10a170ba8ca9f136a371c2ba1 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Fri, 5 Dec 2025 08:36:25 +0000 Subject: [PATCH] Revert unnecessary changes in tests --- tests/test_templatetags.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_templatetags.py b/tests/test_templatetags.py index 072796628..8260fc839 100644 --- a/tests/test_templatetags.py +++ b/tests/test_templatetags.py @@ -1,6 +1,5 @@ import unittest -import django from django.template import Context, Template from django.test import TestCase, override_settings from django.utils.html import urlize @@ -250,9 +249,8 @@ class Issue1386Tests(TestCase): "asdf.com", "asdf.net", "www.as_df.org", + "as.d8f.ghj8.gov", ] - if django.VERSION < (5, 3): - correct_urls.append("as.d8f.ghj8.gov") for i in correct_urls: res = urlize(i) self.assertNotEqual(res, i) @@ -262,8 +260,6 @@ class Issue1386Tests(TestCase): "mailto://asdf@fdf.com", "asdf.netnet", ] - if django.VERSION >= (5, 3): - incorrect_urls.append("as.d8f.ghj8.gov") for i in incorrect_urls: res = urlize(i) self.assertEqual(i, res)