From 883956858206c0ce82a021d4a7a5658008f47722 Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Fri, 6 Mar 2020 04:43:31 -0800 Subject: [PATCH] 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.