summaryrefslogtreecommitdiff
path: root/tests/backends
diff options
context:
space:
mode:
authorMichael Hall <mhall1@ualberta.ca>2014-12-13 06:04:36 -0700
committerTim Graham <timograham@gmail.com>2014-12-13 12:45:58 -0500
commit895dc880ebef46c9577c6908daf283248685f73c (patch)
treecb48d05d2e2489295b1caf2e1b0f330b3324bef8 /tests/backends
parenta5499b0916298caedfd683041515f4e3aa2c5d6d (diff)
Fixed #23812 -- Changed django.utils.six.moves.xrange imports to range
Diffstat (limited to 'tests/backends')
-rw-r--r--tests/backends/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py
index 1c01b4a1eb..5e2c447755 100644
--- a/tests/backends/tests.py
+++ b/tests/backends/tests.py
@@ -26,7 +26,7 @@ from django.test import (TestCase, TransactionTestCase, mock, override_settings,
skipUnlessDBFeature, skipIfDBFeature)
from django.test.utils import str_prefix, IgnoreAllDeprecationWarningsMixin
from django.utils import six
-from django.utils.six.moves import xrange
+from django.utils.six.moves import range
from . import models
@@ -76,7 +76,7 @@ class OracleTests(unittest.TestCase):
# than 4000 chars and read it properly
with connection.cursor() as cursor:
cursor.execute('CREATE TABLE ltext ("TEXT" NCLOB)')
- long_str = ''.join(six.text_type(x) for x in xrange(4000))
+ long_str = ''.join(six.text_type(x) for x in range(4000))
cursor.execute('INSERT INTO ltext VALUES (%s)', [long_str])
cursor.execute('SELECT text FROM ltext')
row = cursor.fetchone()