diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2014-05-23 00:48:17 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2014-05-27 14:47:05 -0700 |
commit | 796f34749dc21ad96f6ac25ca94d403a0974581e (patch) | |
tree | c964db975394e414f7d4aa83ca490da4c3405b99 /generated_tests/gen_texture_lod_tests.py | |
parent | ea293523e4ddc3916d2519730e9cc8c67bb7db11 (diff) |
gen_texure_lod_tests.py: Fix python 2.6 compatablility
In python 2.6 classes created by the collections.namedtuple factory do
not have a __dict__ attribute. This means that calling
**<object>.__dict__ to fill a str.format() is impossible, and the
arguments must be spelled out verbosely.
bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79092
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'generated_tests/gen_texture_lod_tests.py')
-rw-r--r-- | generated_tests/gen_texture_lod_tests.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/generated_tests/gen_texture_lod_tests.py b/generated_tests/gen_texture_lod_tests.py index f6bc08625..6101341c5 100644 --- a/generated_tests/gen_texture_lod_tests.py +++ b/generated_tests/gen_texture_lod_tests.py @@ -156,7 +156,9 @@ def main(): for params in LOD_TESTS: name = ("spec/arb_shader_texture_lod/compiler/" "tex_lod-{mode}-{dimensions}-{coord}.frag".format( - **params.__dict__)) + mode=params.mode, + dimensions=params.dimensions, + coord=params.coord)) print(name) gen_frag_lod_test(params, name) @@ -164,14 +166,18 @@ def main(): # Generate fragment shader test name = ("spec/arb_shader_texture_lod/compiler/" "tex_grad-{mode}-{dimensions}-{coord}.frag".format( - **params.__dict__)) + mode=params.mode, + dimensions=params.dimensions, + coord=params.coord)) print(name) gen_frag_grad_test(params, name) # Generate vertex shader test name = ("spec/arb_shader_texture_lod/compiler/" "tex_grad-{mode}-{dimensions}-{coord}.vert".format( - **params.__dict__)) + mode=params.mode, + dimensions=params.dimensions, + coord=params.coord)) print(name) gen_vert_grad_test(params, name) |