[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules
Michael Foord
report at bugs.python.org
Tue Jun 3 17:15:14 CEST 2014
Michael Foord added the comment:
Yep, patch.dict wasn't designed with stopall in mind so it needs adding. Thanks for pointing this out and your fix.
Your patch isn't quite right, those operations shouldn't be inside the try excepts. (And there are no tests.)
----------
assignee: -> michael.foord
stage: -> test needed
versions: +Python 3.5 -Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21600>
_______________________________________
More information about the Python-bugs-list
mailing list