Skip to content

Commit 8dc2f39

Browse files
committed
Merge pull request realpython#380 from sigmavirus24/add-mock-note
Add note about mock in Python 3.3
2 parents 2454c81 + eec3632 commit 8dc2f39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/writing/tests.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ the need to change any other code.
251251
mock
252252
----
253253

254-
mock is a library for testing in Python.
254+
mock is a library for testing in Python. Starting with Python 3.3, it is
255+
available in the `standard library <http://docs.python.org/dev/library/unittest.mock`_. For older versions of
256+
python, simply:
255257

256258
.. code-block:: console
257259

0 commit comments

Comments
 (0)