We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aefc942 commit c4f7cb6Copy full SHA for c4f7cb6
test_elasticsearch/test_server/test_common.py
@@ -172,7 +172,8 @@ def run_match(self, action):
172
value = self._lookup(path)
173
expected = self._resolve(expected)
174
175
- if expected.startswith('/') and expected.endswith('/'):
+ if isinstance(expected, (type(''), type(u''))) and \
176
+ expected.startswith('/') and expected.endswith('/'):
177
expected = re.compile(expected[1:-1], re.VERBOSE)
178
self.assertTrue(expected.search(value))
179
else:
0 commit comments