Skip to content

Commit

Permalink
fixing test and lint
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Loyko <[email protected]>
  • Loading branch information
AlexLoyko committed Dec 19, 2024
1 parent 21ea92b commit 93fba5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test_opensearchpy/test_async/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async def test_nowarn_when_test_uses_https_if_verify_certs_is_off(self) -> None:
assert (
str(w[0].message) == "enable_cleanup_closed ignored because "
"https://github.com/python/cpython/pull/118960 is fixed in "
"Python version sys.version_info(major=3, minor=12, micro=7, releaselevel='final', serial=0)"
"Python version sys.version_info(major=3, minor=12, micro=8, releaselevel='final', serial=0)"
)

assert isinstance(con.session, aiohttp.ClientSession)
Expand Down
4 changes: 3 additions & 1 deletion utils/generate_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ def dump(self) -> None:
"NamespacedClient",
"AddonClient",
]
present_keywords = [keyword for keyword in keywords if keyword in module_content]
present_keywords = [
keyword for keyword in keywords if keyword in module_content
]

if present_keywords:
utils_imports = "from " + utils + " import"
Expand Down

0 comments on commit 93fba5d

Please sign in to comment.