aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/WebIDL/tests/test_method.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebIDL/tests/test_method.py')
-rw-r--r--third_party/WebIDL/tests/test_method.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/third_party/WebIDL/tests/test_method.py b/third_party/WebIDL/tests/test_method.py
index 0ddfada28ac..80eb0043728 100644
--- a/third_party/WebIDL/tests/test_method.py
+++ b/third_party/WebIDL/tests/test_method.py
@@ -90,7 +90,7 @@ def WebIDLTest(parser, harness):
)
sigpairs = zip(method.signatures(), signatures)
- for (gotSignature, expectedSignature) in sigpairs:
+ for gotSignature, expectedSignature in sigpairs:
(gotRetType, gotArgs) = gotSignature
(expectedRetType, expectedArgs) = expectedSignature
@@ -267,7 +267,7 @@ def WebIDLTest(parser, harness):
"""
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(not threw, "Should allow integer to float type corecion")
@@ -282,7 +282,7 @@ def WebIDLTest(parser, harness):
"""
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(threw, "Should not allow [GetterThrows] on methods")
@@ -297,7 +297,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 methods")
@@ -312,7 +312,7 @@ def WebIDLTest(parser, harness):
"""
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(threw, "Should spell [Throws] correctly on methods")
@@ -327,7 +327,7 @@ def WebIDLTest(parser, harness):
"""
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(threw, "Should not allow __noSuchMethod__ methods")
@@ -345,7 +345,7 @@ def WebIDLTest(parser, harness):
"""
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(not threw, "Should allow LenientFloat to be only in a specific overload")
@@ -383,7 +383,7 @@ def WebIDLTest(parser, harness):
"""
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
threw,
@@ -404,7 +404,7 @@ def WebIDLTest(parser, harness):
"""
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
threw,
@@ -425,6 +425,6 @@ def WebIDLTest(parser, harness):
"""
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(threw, "Should prevent overloads from getting redundant [LenientFloat]")