aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/WebIDL/tests/test_empty_enum.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebIDL/tests/test_empty_enum.py')
-rw-r--r--third_party/WebIDL/tests/test_empty_enum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/WebIDL/tests/test_empty_enum.py b/third_party/WebIDL/tests/test_empty_enum.py
index 09333a659cd..ad002caa4ee 100644
--- a/third_party/WebIDL/tests/test_empty_enum.py
+++ b/third_party/WebIDL/tests/test_empty_enum.py
@@ -11,7 +11,7 @@ def WebIDLTest(parser, harness):
)
harness.ok(False, "Should have thrown!")
- except:
+ except WebIDL.WebIDLError:
harness.ok(True, "Parsing TestEmptyEnum enum should fail")
- results = parser.finish()
+ parser.finish()