Skip to content

Commit

Permalink
honor call argument modifications from on_call_begin
Browse files Browse the repository at this point in the history
  • Loading branch information
jeking3 committed Sep 24, 2020
1 parent 70ad4fe commit b0fe489
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.8.1] - 2020-09-24

### Changed

- Honor changes call handlers make to args, kwargs in on_call_begin
so those changes make it to the actual call.

## [0.8.0] - 2020-09-21

This was a major refactoring to allow for custom call handlers.
Expand Down
2 changes: 1 addition & 1 deletion interposer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def __call__(self, *args, **kwargs):

# nope, so make the actual call
try:
result = super().__call__(*args, **kwargs)
result = super().__call__(*context.args, **context.kwargs)
except Exception as ex:
orig_ex = ex
for handler in self._self_handlers:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
description = "A code intercept wrapper with recording and playback options."
major = 0
minor = 8
patch = 0
patch = 1

# Everything below should be cookie-cutter

Expand Down

0 comments on commit b0fe489

Please sign in to comment.