aboutsummaryrefslogtreecommitdiffhomepage
path: root/python
diff options
context:
space:
mode:
authorGravatar Josh Haberman <jhaberman@gmail.com>2016-06-06 17:14:58 -0700
committerGravatar Josh Haberman <jhaberman@gmail.com>2016-06-06 17:14:58 -0700
commit350453f2d5b6cd5ea4d37924d6ebc818214cc757 (patch)
treeb211e98da0bedfbf2fcab05e2eb00922d6598f5a /python
parent923d2c7ccf2d60705469ace6ba1dce9ca80c0678 (diff)
Make surrogate regex even more lenient.
Diffstat (limited to 'python')
-rw-r--r--python/google/protobuf/internal/json_format_test.py4
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 5394c017..9e32ea47 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 (high )?surrogate')
+ r'Invalid \\uXXXX escape|Unpaired.*surrogate')
# Unpaired low surrogate.
self.CheckError(
'{"stringValue": "\\uDE01"}',
- r'Invalid \\uXXXX escape|Unpaired (high )?surrogate')
+ r'Invalid \\uXXXX escape|Unpaired.*surrogate')
def testTimestampMessage(self):