diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/google/protobuf/internal/json_format_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/google/protobuf/internal/json_format_test.py b/python/google/protobuf/internal/json_format_test.py index ba73c68c..5394c017 100644 --- a/python/google/protobuf/internal/json_format_test.py +++ b/python/google/protobuf/internal/json_format_test.py @@ -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): |