[Piglit] [PATCH] generated_tests/builtin_function.py: hide RuntimeWarnings

Jan Vesely jan.vesely at rutgers.edu
Tue Nov 10 23:23:47 PST 2015


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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20151111/bf7c2c4e/attachment.sig>


More information about the Piglit mailing list