summaryrefslogtreecommitdiff
path: root/tests/utils_tests
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-13 09:05:59 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-15 22:28:37 +0100
commitf3a2509a54e0b5513199efca5e41a5183fc097f0 (patch)
tree89b151fe71e4336cec3e8b60da388c733596f459 /tests/utils_tests
parent6c120508b6445cb0d6198b4eacccd411960686d2 (diff)
Refs #34983 -- Removed django.utils.itercompat per deprecation timeline.
Diffstat (limited to 'tests/utils_tests')
-rw-r--r--tests/utils_tests/test_itercompat.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/utils_tests/test_itercompat.py b/tests/utils_tests/test_itercompat.py
deleted file mode 100644
index a95867c621..0000000000
--- a/tests/utils_tests/test_itercompat.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# RemovedInDjango60Warning: Remove this entire module.
-
-from django.test import SimpleTestCase
-from django.utils.deprecation import RemovedInDjango60Warning
-from django.utils.itercompat import is_iterable
-
-
-class TestIterCompat(SimpleTestCase):
- def test_is_iterable_deprecation(self):
- msg = (
- "django.utils.itercompat.is_iterable() is deprecated. "
- "Use isinstance(..., collections.abc.Iterable) instead."
- )
- with self.assertWarnsMessage(RemovedInDjango60Warning, msg) as ctx:
- is_iterable([])
- self.assertEqual(ctx.filename, __file__)