mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
[py3] Added Python 3 compatibility for xrange.
This commit is contained in:
parent
ca07fda2ef
commit
a84d79f572
32 changed files with 77 additions and 53 deletions
|
|
@ -98,7 +98,7 @@ class SortedDictTests(SimpleTestCase):
|
|||
self.assertEqual(l - len(self.d1), 1)
|
||||
|
||||
def test_dict_equality(self):
|
||||
d = SortedDict((i, i) for i in xrange(3))
|
||||
d = SortedDict((i, i) for i in range(3))
|
||||
self.assertEqual(d, {0: 0, 1: 1, 2: 2})
|
||||
|
||||
def test_tuple_init(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue