You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few months ago, in pyfakefs.pyfakefs_unittest._Patcher I replaced mox with unittest.mock. mox worked fine, but mock seemed like a more reliable dependency:
mox is seemingly abandoned while mock is now part of the standard library
mox does not support Python 3
The OpenStack people created mox3 to support Python 3, but it is marked with the omimous comment, "Use at your own risk". Moreover, OpenStack stopped using mox3.
pyfakefs used only one small part of mox, mox.stubout. I do not care to depend on unmaintained mox, (or to take on maintenance of the mox3 module as a whole), so I am considering salvaging just the part of mox3 that pyfakefs needs:
Take just mox3.stubout.py and its test from mox3
Add it to pyfakefs as pyfakefs.stubout
Revert to using pyfakefs.stubout as I used mox.stubout in earlier versions, eliminating the dependency on both mock and mox
Please tell me what you think of this plan.
The text was updated successfully, but these errors were encountered:
A few months ago, in
pyfakefs.pyfakefs_unittest._Patcher
I replaced mox with unittest.mock. mox worked fine, but mock seemed like a more reliable dependency:Now we are seeing all kinds of trouble caused by mock module bug 250:
pyfakefs used only one small part of mox, mox.stubout. I do not care to depend on unmaintained mox, (or to take on maintenance of the mox3 module as a whole), so I am considering salvaging just the part of mox3 that pyfakefs needs:
Please tell me what you think of this plan.
The text was updated successfully, but these errors were encountered: