diff options
author | Rebecca N. Palmer <rebecca_palmer@zoho.com> | 2016-09-25 18:07:25 +0100 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-09-28 17:44:40 +0800 |
commit | fb0b4ec4a565e6593d80e40e1c7611f13fff1572 (patch) | |
tree | 3ad1a763686ab71442f2a99a22fa6a8f5dd37ff1 /utests/utest_generator.py | |
parent | 0056da7ae23ba6c6db019b4ee7f990edcf932c8f (diff) | |
download | beignet-fb0b4ec4a565e6593d80e40e1c7611f13fff1572.tar.gz |
Allow building tests with Python 3 (no string.atoi)
Signed-off-by: Rebecca Palmer <rebecca_palmer@zoho.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest_generator.py')
-rw-r--r-- | utests/utest_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/utest_generator.py b/utests/utest_generator.py index d66788cc..f8fe35ea 100644 --- a/utests/utest_generator.py +++ b/utests/utest_generator.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python from __future__ import print_function import os,sys,re,string @@ -247,7 +247,7 @@ which can print more values and information to assist debuging the issue. def argvector(self,paraN,index): vector=re.findall(r"[0-9]+",self.inputtype[paraN][index]) if vector: - vector=string.atoi(vector[0]) + vector=int(vector[0]) else: vector=1 return vector |