Skip to content

Commit

Permalink
fix(python-win): use terminate over signal
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Oct 23, 2024
1 parent ebc35d5 commit 7578e1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion provider-python-kafka/tests/provider_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ def redirect() -> NoReturn:
try:
yield url
finally:
process.send_signal(signal.SIGINT)
if sys.platform == "win32":
process.terminate()
else:
process.send_signal(signal.SIGINT)


if __name__ == "__main__":
Expand Down

0 comments on commit 7578e1f

Please sign in to comment.