skip to navigation
skip to content

backports.unittest_mock 1.3


Provides a function “install()” which makes the “mock” module available as “unittest.mock” on Python 3.2 and earlier.

Also advertises a pytest plugin which configures unittest.mock automatically.


License is indicated in the project metadata (typically one or more of the Trove classifiers). For more details, see this explanation.


If using pytest, simply require this package in your test environment, and unittest.mock will be available.

Otherwise, it must be invoked imperatively:

import backports.unittest_mock

import unittest.mock
File Type Py Version Uploaded on Size
backports.unittest_mock-1.3-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-05-13 4KB
backports.unittest_mock-1.3.tar.gz (md5) Source 2017-05-13 4KB