-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utils.TestServer.close(): unexpected keyword argument #17
Comments
@garyo Thanks for bringing up this. looks like because of incompatible change in Also we also have to fix Sanic here, https://github.com/channelcat/sanic/blob/master/sanic/server.py#L668, I'll fix both soon. To quick unblock yourself, you can use |
Actually I just locally edited utils.py 😄 and removed the extra arg. Thanks for the quick response! |
@garyo i've pushed a fix in Sanic, master branch. but it requires a release. or you can use master branch. |
Sanic is now updated to require websockets 5.0, so this failure is is back. |
Yeah, but Sanic didn't release the latest version to pypi. Anyway, I guess I can push a fix for both case. |
ok, fixed. |
In pytest_sanic.utils.TestServer.close(), there is this code:
As you can see from the
E
error here, conn.websocket.close_connection() doesn't expect an after_handshake arg.The text was updated successfully, but these errors were encountered: