id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 23289 Make mock library available for testing in Django Claude Paroz Tim Graham "This question was raised while working on #21523. `unittest.mock` is available in Python 3.3+. Backports for previous Python versions are available from https://pypi.python.org/pypi/mock. Basically the main options are: 1. Vendor the mock library backport in Django and conditionally import that backport (we used to have that for unittest2). 2. Use a strategy similar to the `selenium` dependency, that is having a test class or a mixin class explicitly used when we are using `mock` functionality in a test, and that class would skip the test when `mock` is not available. 3. Have the `mock` library as a hard dependency for our test suite, checking its availability in `runtests.py` for Python < 3.3 with an appropriate message." New feature closed Testing framework dev Normal fixed Tim Graham Ready for checkin 1 0 0 0 0 0