Browse files

Patterns need to be regex-compatible

  • Loading branch information...
1 parent 2b0124f commit 25ec29a2167f0177c30850fc2cf5b23eedd5a823 @mattbasta committed Jun 5, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 validator/testcases/regex.py
View
10 validator/testcases/regex.py
@@ -218,14 +218,14 @@ class MarionetteInPrefsRegexTests(RegexTestGenerator):
Added from bug 741812
"""
- MARIONETTE_REFERENCES = {"@mozilla.org/marionette;1": 741812,
- "{786a1369-dca5-4adc-8486-33d23c88010a}": 741812,
+ MARIONETTE_REFERENCES = {r"@mozilla\.org/marionette;1": 741812,
+ r"\{786a1369\-dca5\-4adc-8486\-33d23c88010a\}": 741812,
"MarionetteComponent": 741812,
"MarionetteServer": 741812}
- MARIONETTE_PREFS = {"marionette.force-local": 741812,
- "marionette.defaultPrefs.enabled": 741812,
- "marionette.defaultPrefs.port": 741812}
+ MARIONETTE_PREFS = {r"marionette\.force\-local": 741812,
+ r"marionette\.defaultPrefs\.enabled": 741812,
+ r"marionette\.defaultPrefs\.port": 741812}
@classmethod
def applicable(cls, err, filename, document):
return bool(re.match(r"defaults/preferences/.+\.js", filename))

0 comments on commit 25ec29a

Please sign in to comment.