Commit 923d2c7c authored by Josh Haberman's avatar Josh Haberman

JSON surrogates Python: adjust regex for OSX error message.

OS X's version of Python has a slightly different error
message for this error case.
parent 6a618949
......@@ -260,12 +260,12 @@ class JsonFormatTest(JsonFormatBase):
# Error case: unpaired high surrogate.
self.CheckError(
'{"stringValue": "\\uD83D"}',
r'Invalid \\uXXXX escape|Unpaired surrogate')
r'Invalid \\uXXXX escape|Unpaired (high )?surrogate')
# Unpaired low surrogate.
self.CheckError(
'{"stringValue": "\\uDE01"}',
r'Invalid \\uXXXX escape|Unpaired surrogate')
r'Invalid \\uXXXX escape|Unpaired (high )?surrogate')
def testTimestampMessage(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment