aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/WebIDL/tests/test_record.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebIDL/tests/test_record.py')
-rw-r--r--third_party/WebIDL/tests/test_record.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/WebIDL/tests/test_record.py b/third_party/WebIDL/tests/test_record.py
index 3a31d721b27..bee5c83953d 100644
--- a/third_party/WebIDL/tests/test_record.py
+++ b/third_party/WebIDL/tests/test_record.py
@@ -38,7 +38,7 @@ def WebIDLTest(parser, harness):
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
threw, "Should have thrown because record can't have undefined as value type."
@@ -56,6 +56,6 @@ def WebIDLTest(parser, harness):
)
results = parser.finish()
- except Exception as x:
+ except WebIDL.WebIDLError:
threw = True
harness.ok(threw, "Should have thrown on dictionary containing itself via record.")