diff options
Diffstat (limited to 'third_party/WebIDL/tests/test_attr.py')
-rw-r--r-- | third_party/WebIDL/tests/test_attr.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/third_party/WebIDL/tests/test_attr.py b/third_party/WebIDL/tests/test_attr.py index e19689a81a9..b8dbccf41e7 100644 --- a/third_party/WebIDL/tests/test_attr.py +++ b/third_party/WebIDL/tests/test_attr.py @@ -147,7 +147,7 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except Exception as x: + except WebIDL.WebIDLError: threw = True harness.ok(threw, "Should not allow [SetterThrows] on readonly attributes") @@ -162,7 +162,7 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except Exception as x: + except WebIDL.WebIDLError: threw = True harness.ok(threw, "Should spell [Throws] correctly") @@ -177,7 +177,7 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except Exception as x: + except WebIDL.WebIDLError: threw = True harness.ok( threw, "Should not allow [SameObject] on attributes not of interface type" @@ -194,6 +194,6 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except Exception as x: + except WebIDL.WebIDLError: threw = True harness.ok(not threw, "Should allow [SameObject] on attributes of interface type") |