summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-02-05 08:42:47 -0800
committerTim Graham <timograham@gmail.com>2018-02-05 11:42:47 -0500
commitaba9763b5117494ca1ef1e420397e3845ad5b262 (patch)
treeba50450142a5aac612e56ae50d73fdfea997ee37 /tests
parent8b21878357364a461bae711c4d0011a8f338b160 (diff)
Refs #28814 -- Imported from collections.abc to fix Python 3.7 deprecation warnings.
https://bugs.python.org/issue25988
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py
index 0161782dbe..7d7216777c 100644
--- a/tests/lookup/tests.py
+++ b/tests/lookup/tests.py
@@ -1,4 +1,4 @@
-import collections
+import collections.abc
from datetime import datetime
from math import ceil
from operator import attrgetter
@@ -99,7 +99,7 @@ class LookupTests(TestCase):
def test_iterator(self):
# Each QuerySet gets iterator(), which is a generator that "lazily"
# returns results using database-level iteration.
- self.assertIsInstance(Article.objects.iterator(), collections.Iterator)
+ self.assertIsInstance(Article.objects.iterator(), collections.abc.Iterator)
self.assertQuerysetEqual(
Article.objects.iterator(),