Commit 13770974 authored by Dylan Baker's avatar Dylan Baker

generated tests: add print function to remaining generators

These tests either already used parans around print (even though it
wasn't necessary), or don't include print statements. I think it's worth
while to have this because it helps to remove surprise for people
modifying the generators, then they don't have to dig in and understand
how python2 and python3's division is different.

v2: - add this patch
Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
parent 6edad161
......@@ -48,6 +48,7 @@
# swizzling, the function call operator, assignment, and the sequence
# operator.
from __future__ import print_function
import collections
import itertools
import functools
......
......@@ -48,6 +48,7 @@
# swizzling, the function call operator, assignment, and the sequence
# operator.
from __future__ import print_function
import collections
import itertools
import functools
......
from __future__ import division
from __future__ import print_function, division
import os
from genclbuiltins import gen, DATA_SIZES, MAX_VALUES, MAX, MIN, BMIN, BMAX, \
SMIN, SMAX, UMIN, UMAX, TYPE, SIZE, T, U, B
......
......@@ -23,6 +23,7 @@
# Aaron Watry <awatry@gmail.com>
#
from __future__ import print_function
import os
from genclbuiltins import gen, NEGNAN
......
......@@ -23,6 +23,7 @@
# Aaron Watry <awatry@gmail.com>
#
from __future__ import print_function
import os
from genclbuiltins import gen, TRUE, NEGNAN
......
......@@ -23,6 +23,7 @@
#
#
from __future__ import print_function
import os
import textwrap
......
......@@ -46,6 +46,7 @@
This program outputs, to stdout, the name of each file it generates.
"""
from __future__ import print_function
from builtin_function import *
import os
......
from __future__ import print_function
import os
import six
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment