aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser/tests/test_identifier_conflict.py
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2019-07-11 13:16:10 +0900
committerKagami Sascha Rosylight <saschanaz@outlook.com>2019-07-12 12:14:06 +0900
commit56f31c85ef9cc79140f375641302310c6680ded4 (patch)
treefc0616a5f5d1df4434e9974e5bc62db2389ffcef /components/script/dom/bindings/codegen/parser/tests/test_identifier_conflict.py
parent5fdc7c0d2c787ef562809072e3dd7c3258dc8a83 (diff)
downloadservo-56f31c85ef9cc79140f375641302310c6680ded4.tar.gz
servo-56f31c85ef9cc79140f375641302310c6680ded4.zip
Sync WebIDL.py with gecko
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/tests/test_identifier_conflict.py')
-rw-r--r--components/script/dom/bindings/codegen/parser/tests/test_identifier_conflict.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/parser/tests/test_identifier_conflict.py b/components/script/dom/bindings/codegen/parser/tests/test_identifier_conflict.py
index b510a30c044..0e9a6654aa7 100644
--- a/components/script/dom/bindings/codegen/parser/tests/test_identifier_conflict.py
+++ b/components/script/dom/bindings/codegen/parser/tests/test_identifier_conflict.py
@@ -9,7 +9,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
harness.ok(False, "Should fail to parse")
- except Exception, e:
+ except Exception as e:
harness.ok("Name collision" in e.message,
"Should have name collision for interface")
@@ -21,7 +21,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
harness.ok(False, "Should fail to parse")
- except Exception, e:
+ except Exception as e:
harness.ok("Name collision" in e.message,
"Should have name collision for dictionary")
@@ -33,7 +33,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
harness.ok(False, "Should fail to parse")
- except Exception, e:
+ except Exception as e:
harness.ok("Multiple unresolvable definitions" in e.message,
"Should have name collision for dictionary")