Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pendulum.test to properly unwind after an exception (#445)
Previously, if an exception occurred inside a 'with pendulum.test(...)' block, then the monkeypatch would remain in place instead of being un-done. This could cause confusing results, as one failing test could cause other tests to run with an unexpected mock in place and cause other failures.
- Loading branch information