[Piglit] [PATCH] deqp: Add test profile for external dEQP-GLES3 tests (v4)

Dylan Baker baker.dylan.c at gmail.com
Tue Dec 16 16:33:36 PST 2014


On Tuesday, December 16, 2014 02:52:08 PM Chad Versace wrote:
> On 12/16/2014 02:10 PM, Dylan Baker wrote:
> > On Tuesday, December 16, 2014 01:49:20 PM Chad Versace wrote:
> 
> >> +    try:
> >> +        opt = framework.core.PIGLIT_CONFIG.get(config_option[0],
> >> +                                               config_option[1])
> >> +    except ConfigParser.NoSectionError:
> >> +        pass
> >> +    except ConfigParser.NoOptionError:
> >> +        pass
> > 
> > You should combine these
> 
> What's the syntax? I tried
> 
>     except ConfigParser.NoSectionError, ConfigParser.NoOptionError:
>         pass
> 
> but that failed to catch ConfigParser.NoOptionError.
> 
It requires that the tuple have the () around it.

except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
	pass

This is because of the legacy "except Exception, e" syntax.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20141216/12cf3a0a/attachment.sig>


More information about the Piglit mailing list