In python 2 it is expected that errors descend from Exception, but there is no requirement that they do so, in python 3 it is required. This also is problematic because it makes the exception class an old style class, which has all the problems associated with old style classes.
Signed-off-by: Dylan Baker <[email protected]> --- registry/gl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/gl.py b/registry/gl.py index c1ba2ef..99f4a41 100644 --- a/registry/gl.py +++ b/registry/gl.py @@ -318,7 +318,7 @@ class ImmutableOrderedKeyedSet(OrderedKeyedSet): raise ImmutableError -class ImmutableError: +class ImmutableError(Exception): pass -- 2.2.1 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
