Skip to content
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

Deepcopy in _request_mock should handle ValueError alongside TypeError #178

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

gordonarogers
Copy link

When the deepcopy is called in _request_mock (core.py line 384) there is the potential for a ValueError to be raised (e.g. when kwargs contains an io.BytesIO instance). Currently the logic only supports the handling of TypeError, so this PR now allows the same behaviour on ValueError.

@pnuckowski pnuckowski merged commit 93cde66 into pnuckowski:master Dec 16, 2020
@gordonarogers
Copy link
Author

When the deepcopy is called in _request_mock (core.py line 384) there is the potential for a ValueError to be raised (e.g. when kwargs contains an io.BytesIO instance). Currently the logic only supports the handling of TypeError, so this PR now allows the same behaviour on ValueError.

@pnuckowski would it be possible to cut a new release so that I can utilise this fix please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants