aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser/tests/test_namespace.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-07-12 04:35:46 -0400
committerGitHub <noreply@github.com>2019-07-12 04:35:46 -0400
commit026e550d3536115b23ad794e08b3c93147913dfb (patch)
tree5d83ec4a7d401706c2668ee5fac90e99ef734b1e /components/script/dom/bindings/codegen/parser/tests/test_namespace.py
parent5fdc7c0d2c787ef562809072e3dd7c3258dc8a83 (diff)
parent01151274f1487e630852680ba38ab5a651db44ec (diff)
downloadservo-026e550d3536115b23ad794e08b3c93147913dfb.tar.gz
servo-026e550d3536115b23ad794e08b3c93147913dfb.zip
Auto merge of #23748 - saschanaz:default-dict, r=Manishearth
Sync WebIDL.py with gecko <!-- Please describe your changes on the following line: --> The new change requires default dictionary value for optional dictionary-type arguments. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23703 <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23748) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/tests/test_namespace.py')
-rw-r--r--components/script/dom/bindings/codegen/parser/tests/test_namespace.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/components/script/dom/bindings/codegen/parser/tests/test_namespace.py b/components/script/dom/bindings/codegen/parser/tests/test_namespace.py
index 74533a1770e..62edb270c63 100644
--- a/components/script/dom/bindings/codegen/parser/tests/test_namespace.py
+++ b/components/script/dom/bindings/codegen/parser/tests/test_namespace.py
@@ -70,7 +70,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")
@@ -85,7 +85,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")
@@ -104,7 +104,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")
@@ -123,7 +123,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")
@@ -142,7 +142,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")
@@ -161,7 +161,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")
@@ -180,7 +180,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")
@@ -199,7 +199,7 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")
@@ -218,6 +218,6 @@ def WebIDLTest(parser, harness):
""")
results = parser.finish()
- except Exception, x:
+ except Exception as x:
threw = True
harness.ok(threw, "Should have thrown.")