-
Notifications
You must be signed in to change notification settings - Fork 79
Upgrade simplejson to 3.18.4
#136
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
Conversation
| expected_handler = "app.my_test_handler" | ||
| expected_lambda_runtime_api_addr = "test_addr" | ||
|
|
||
| mock_build_fault_result.return_value = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to mock build_fault_result() return value because newer simplejson will throw an error when it tries to JSON encode a MagicMock type.
E TypeError: _asdict() must return a dict, not MagicMock
aws-lambda-python-runtime-interface-client/awslambdaric/bootstrap.py
Lines 485 to 488 in 056aa36
| error_result = build_fault_result(sys.exc_info(), None) | |
| log_error(error_result, log_sink) | |
| lambda_runtime_client.post_init_error(to_json(error_result)) |
|
@briensea @alex-pewpew @pushkarchawda @andclt |
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
Thanks for contributing |
Issue:
fixes #135
fixes #93
fixes #62
Description of changes:
simplejson==3.18.4Testing
make pr make test make test-smoke make test-integTarget (OCI, Managed Runtime, both):
Both
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.