summaryrefslogtreecommitdiff
path: root/generated_tests
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-02-20 14:15:20 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2015-02-23 15:47:10 -0800
commit6edad161c6fd7de0ac8ceed01b392c0efc783716 (patch)
tree8e8c382d20c98d0e42b1663d1ce2f8d679da5b58 /generated_tests
parentd5bb562cc39a81463cf502ea08dea2ed7062541e (diff)
gen_cl_store_tests.py: hybridize for python 2/3
Uses six.moves.range Generates the same results before and after. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'generated_tests')
-rw-r--r--generated_tests/gen_cl_store_tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/generated_tests/gen_cl_store_tests.py b/generated_tests/gen_cl_store_tests.py
index 4bd6a4656..37b6a95bc 100644
--- a/generated_tests/gen_cl_store_tests.py
+++ b/generated_tests/gen_cl_store_tests.py
@@ -26,6 +26,8 @@
import os
import textwrap
+from six.moves import range
+
from modules import utils
TYPES = ['char', 'uchar', 'short', 'ushort', 'int', 'uint', 'long', 'ulong', 'float', 'double']
@@ -36,7 +38,8 @@ utils.safe_makedirs(dirName)
def gen_array(size):
- return ' '.join([str(i) for i in xrange(size * 8)])
+ return ' '.join([str(i) for i in range(size * 8)])
+
def ext_req(type_name):
if type_name[:6] == "double":