Skip to content

Commit 21492f6

Browse files
committed
Fixed yaml test runner
Signed-off-by: saimedhi <saimedhi@amazon.com>
1 parent d4249b7 commit 21492f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_opensearchpy/test_server/test_rest_api_spec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def run_match(self, action: Any) -> None:
382382
and expected.strip().endswith("/")
383383
):
384384
print("entered if")
385-
expected = re.compile(expected[1:-1], re.VERBOSE | re.MULTILINE)
385+
expected = re.compile(expected.strip()[1:-1], re.VERBOSE | re.MULTILINE)
386386
assert expected.search(value), "%r does not match %r" % (
387387
value,
388388
expected,

0 commit comments

Comments
 (0)