[Piglit] [PATCH 01/34] gen_builtin_packing_tests.py: use __future__ division

Vinson Lee vlee at freedesktop.org
Sat Feb 21 01:14:31 PST 2015


On Fri, Feb 20, 2015 at 6:17 PM, Dylan Baker <baker.dylan.c at gmail.com> wrote:
> This produces no changes in the output
>
> Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
> ---
>  generated_tests/gen_builtin_packing_tests.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/generated_tests/gen_builtin_packing_tests.py b/generated_tests/gen_builtin_packing_tests.py
> index 901f493..2815fc3 100644
> --- a/generated_tests/gen_builtin_packing_tests.py
> +++ b/generated_tests/gen_builtin_packing_tests.py
> @@ -32,7 +32,7 @@ denormalized) floating point numbers.
>
>  """
>
> -from __future__ import print_function
> +from __future__ import print_function, division
>  import math
>  import optparse
>  import os
> --
> 2.3.0
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit

Is this import necessary? I didn't see any integer division in this file.


More information about the Piglit mailing list