|
@@ -260,12 +260,12 @@ class JsonFormatTest(JsonFormatBase):
|
|
# Error case: unpaired high surrogate.
|
|
# Error case: unpaired high surrogate.
|
|
self.CheckError(
|
|
self.CheckError(
|
|
'{"stringValue": "\\uD83D"}',
|
|
'{"stringValue": "\\uD83D"}',
|
|
- r'Invalid \\uXXXX escape|Unpaired (high )?surrogate')
|
|
|
|
|
|
+ r'Invalid \\uXXXX escape|Unpaired.*surrogate')
|
|
|
|
|
|
# Unpaired low surrogate.
|
|
# Unpaired low surrogate.
|
|
self.CheckError(
|
|
self.CheckError(
|
|
'{"stringValue": "\\uDE01"}',
|
|
'{"stringValue": "\\uDE01"}',
|
|
- r'Invalid \\uXXXX escape|Unpaired (high )?surrogate')
|
|
|
|
|
|
+ r'Invalid \\uXXXX escape|Unpaired.*surrogate')
|
|
|
|
|
|
|
|
|
|
def testTimestampMessage(self):
|
|
def testTimestampMessage(self):
|