Skip to content

Fix pendulum.test to properly unwind after an exception#445

Merged
sdispater merged 1 commit intopython-pendulum:masterfrom
njsmith:test-unwind-after-error
Mar 6, 2020
Merged

Fix pendulum.test to properly unwind after an exception#445
sdispater merged 1 commit intopython-pendulum:masterfrom
njsmith:test-unwind-after-error

Conversation

@njsmith
Copy link
Copy Markdown
Contributor

@njsmith njsmith commented Mar 5, 2020

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.

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.
@njsmith njsmith force-pushed the test-unwind-after-error branch from 2c11502 to 0b4f34e Compare March 5, 2020 01:39
@njsmith
Copy link
Copy Markdown
Contributor Author

njsmith commented Mar 5, 2020

All the test failures appear to be unrelated.

@sdispater sdispater merged commit 8839568 into python-pendulum:master Mar 6, 2020
@sdispater
Copy link
Copy Markdown
Collaborator

Thanks!

@sdispater sdispater mentioned this pull request Mar 7, 2020
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