diff options
Diffstat (limited to 'third_party/WebIDL/tests/test_stringifier.py')
-rw-r--r-- | third_party/WebIDL/tests/test_stringifier.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/third_party/WebIDL/tests/test_stringifier.py b/third_party/WebIDL/tests/test_stringifier.py index 948be71e4dd..c2052c44e57 100644 --- a/third_party/WebIDL/tests/test_stringifier.py +++ b/third_party/WebIDL/tests/test_stringifier.py @@ -30,7 +30,7 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except: + except WebIDL.WebIDLError: threw = True harness.ok(threw, "Should not allow two 'stringifier;'") @@ -48,7 +48,7 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except: + except WebIDL.WebIDLError: threw = True harness.ok(threw, "Should not allow a 'stringifier;' and a 'stringifier()'") @@ -156,7 +156,7 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except: + except WebIDL.WebIDLError: threw = True harness.ok(threw, "Should not allow ByteString") @@ -173,7 +173,7 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except: + except WebIDL.WebIDLError: threw = True harness.ok(threw, "Should not allow a 'stringifier;' and a stringifier attribute") @@ -190,7 +190,7 @@ def WebIDLTest(parser, harness): """ ) results = parser.finish() - except: + except WebIDL.WebIDLError: threw = True harness.ok(threw, "Should not allow multiple stringifier attributes") |