In order to prevent crashes when patching private methods and variables of external packages, such as the one seen in #259, this PR calls each patch_ function in a Patcher context (which really should have been done from the beginning).
Adds tests which perform rudimentary testing of each patched module attribute. Nothing in-depth, but ensures they at least work.
In order to prevent crashes when patching private methods and variables of external packages, such as the one seen in #259, this PR calls each
patch_
function in aPatcher
context (which really should have been done from the beginning).Adds tests which perform rudimentary testing of each patched module attribute. Nothing in-depth, but ensures they at least work.