diff options
Diffstat (limited to 'third_party/WebIDL/tests/test_newobject.py')
-rw-r--r-- | third_party/WebIDL/tests/test_newobject.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/third_party/WebIDL/tests/test_newobject.py b/third_party/WebIDL/tests/test_newobject.py index c12995a0e86..b30e9c58160 100644 --- a/third_party/WebIDL/tests/test_newobject.py +++ b/third_party/WebIDL/tests/test_newobject.py @@ -1,7 +1,7 @@ -# Import the WebIDL module, so we can do isinstance checks and whatnot import WebIDL +# Import the WebIDL module, so we can do isinstance checks and whatnot def WebIDLTest(parser, harness): # Basic functionality parser.parse( @@ -25,8 +25,8 @@ def WebIDLTest(parser, harness): }; """ ) - results = parser.finish() - except: + parser.finish() + except WebIDL.WebIDLError: threw = True harness.ok(threw, "[NewObject] attributes must depend on something") @@ -40,8 +40,8 @@ def WebIDLTest(parser, harness): }; """ ) - results = parser.finish() - except: + parser.finish() + except WebIDL.WebIDLError: threw = True harness.ok(threw, "[NewObject] methods must depend on something") @@ -55,8 +55,8 @@ def WebIDLTest(parser, harness): }; """ ) - results = parser.finish() - except: + parser.finish() + except WebIDL.WebIDLError: threw = True harness.ok(threw, "[NewObject] attributes must not be [Cached]") @@ -70,7 +70,7 @@ def WebIDLTest(parser, harness): }; """ ) - results = parser.finish() - except: + parser.finish() + except WebIDL.WebIDLError: threw = True harness.ok(threw, "[NewObject] attributes must not be [StoreInSlot]") |