Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[py3] Ported django.utils.baseconv.

  • Loading branch information...
commit b55e07771fdc9f9cc80fb099429774672aaf9be9 1 parent 13338a6
Aymeric Augustin authored August 04, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  tests/regressiontests/utils/baseconv.py
3  tests/regressiontests/utils/baseconv.py
... ...
@@ -1,10 +1,11 @@
1 1
 from unittest import TestCase
2 2
 from django.utils.baseconv import base2, base16, base36, base56, base62, base64, BaseConverter
  3
+from django.utils.six.moves import xrange
3 4
 
4 5
 class TestBaseConv(TestCase):
5 6
 
6 7
     def test_baseconv(self):
7  
-        nums = [-10 ** 10, 10 ** 10] + range(-100, 100)
  8
+        nums = [-10 ** 10, 10 ** 10] + list(xrange(-100, 100))
8 9
         for converter in [base2, base16, base36, base56, base62, base64]:
9 10
             for i in nums:
10 11
                 self.assertEqual(i, converter.decode(converter.encode(i)))

0 notes on commit b55e077

Please sign in to comment.
Something went wrong with that request. Please try again.