I'd like to use the mock module for Python unittests. This patch imports mock-1.0.0 into the tree and puts it in the virtualenv. Related: mock is apparently the core module "unittest.mock" in Python 3.3, which is neat. If we ever switch to requiring Python 3 we get this for free.
Created attachment 673359 [details] [diff] [review] Import mock into virtualenv
Comment on attachment 673359 [details] [diff] [review] Import mock into virtualenv I didn't read the whole patch, but assuming this is just a straight copy of the canonical module and addition to virtualenv/packages, lgtm
That's exactly what it is. I untarred the 1.0.0 package from Pypi into the python/ dir, and updated build/virtualenv/packages.txt. (Sorry, should have mentioned that in my comment.)
It seems like a bit of generated junk like python/mock-1.0.0/html/.doctrees/* was added. Intentional?
No, but if it's not hurting anything I'm not particularly worried about it.