[Piglit] [PATCH] generated_tests/builtin_function.py: hide RuntimeWarnings
Dylan Baker
baker.dylan.c at gmail.com
Wed Nov 11 07:44:32 PST 2015
Yeah. I noticed that right after I pushed it. I have a patch to fix it
already. I'll send it out or push it today.
On Nov 10, 2015 23:23, "Jan Vesely" <jan.vesely at rutgers.edu> wrote:
> On Tue, 2015-11-10 at 13:44 -0800, Dylan Baker wrote:
> > On Tue, Nov 10, 2015 at 12:37:31PM -0800, Vinson Lee wrote:
> > > On Fri, Nov 6, 2015 at 12:35 PM, <baker.dylan.c at gmail.com> wrote:
> > > > From: Dylan Baker <baker.dylan.c at gmail.com>
> > > >
> > > > These warnings are expected, it's better to hide expected
> > > > warnings and
> > > > provide a comment about them being expected than to have them
> > > > clutter
> > > > the output of the build system.
> > > >
> > > > Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
> > [snip]
> > >
> > > I found this comment about the warning.
> > > https://bugs.freedesktop.org/show_bug.cgi?id=40697#c5
> > >
> > > Reviewed-by: Vinson Lee <vlee at freedesktop.org>
> >
> > Thanks Vinson, I've updated the commit message with that reference
> > and
> > pushed this patch.
>
> I know it's not officially supported, but the patch breaks the build
> with python3:
> $ python3 generated_tests/gen_shader_precision_tests.py
> Traceback (most recent call last):
> File "generated_tests/gen_shader_precision_tests.py", line 53, in
> <module>
> from builtin_function import *
> File "/home/orome/piglit/generated_tests/builtin_function.py", line
> 1479, in <module>
> _make_vector_or_matrix_test_vectors(test_suite)
> File "/home/orome/piglit/generated_tests/builtin_function.py", line
> 1284, in _make_vector_or_matrix_test_vectors
> with warnings.catch_warnings(RuntimeWarning):
> TypeError: __init__() takes 1 positional argument but 2 were given
>
> $ python3 --version
>
> Jan
>
>
> > _______________________________________________
> > Piglit mailing list
> > Piglit at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/piglit
>
> --
> Jan Vesely <jan.vesely at rutgers.edu>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20151111/7423ec17/attachment.html>
More information about the Piglit
mailing list