Skip to content

Commit

Permalink
Fixed yaml test runner
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <[email protected]>
  • Loading branch information
saimedhi committed Mar 15, 2024
1 parent 1d20e7f commit 88981ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_opensearchpy/test_server/test_rest_api_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,11 @@ def run_match(self, action: Any) -> None:

if (
isinstance(expected, str)
and expected.strip().startswith("/")
and expected.strip().endswith("/")
and expected.startswith("/")
and expected.endswith("/")
):
print("entered if")
expected = re.compile(expected.strip()[1:-1], re.VERBOSE | re.MULTILINE)
expected = re.compile(expected[1:-1], re.VERBOSE | re.MULTILINE)
assert expected.search(value), "%r does not match %r" % (
value,
expected,
Expand Down

0 comments on commit 88981ff

Please sign in to comment.