##// END OF EJS Templates
Document need to call doctest_reload() with older Python versions
Thomas Kluyver -
Show More
@@ -52,13 +52,13 b' def doctest_reload():'
52 - imports doctest but does NOT reload it (see below).
52 - imports doctest but does NOT reload it (see below).
53
53
54 - resets its global 'master' attribute to None, so that multiple uses of
54 - resets its global 'master' attribute to None, so that multiple uses of
55 the module interactively don't produce cumulative reports.
55 the module interactively don't produce cumulative reports.
56
56
57 - Monkeypatches its core test runner method to protect it from IPython's
57 - Monkeypatches its core test runner method to protect it from IPython's
58 modified displayhook. Doctest expects the default displayhook behavior
58 modified displayhook. Doctest expects the default displayhook behavior
59 deep down, so our modification breaks it completely. For this reason, a
59 deep down, so our modification breaks it completely. For this reason, a
60 hard monkeypatch seems like a reasonable solution rather than asking
60 hard monkeypatch seems like a reasonable solution rather than asking
61 users to manually use a different doctest runner when under IPython.
61 users to manually use a different doctest runner when under IPython.
62
62
63 Notes
63 Notes
64 -----
64 -----
@@ -40,3 +40,7 b' Backwards incompatible changes'
40 :mod:`IPython.lib.inputhook`.
40 :mod:`IPython.lib.inputhook`.
41 * For all kernel managers, the ``sub_channel`` attribute has been renamed to
41 * For all kernel managers, the ``sub_channel`` attribute has been renamed to
42 ``iopub_channel``.
42 ``iopub_channel``.
43 * Users on Python versions before 2.6.6, 2.7.1 or 3.2 will now need to call
44 :func:`IPython.utils.doctestreload.doctest_reload` to make doctests run
45 correctly inside IPython. Python releases since those versions are unaffected.
46 For details, see :ghpull:`3068` and `Python issue 8048 <http://bugs.python.org/issue8048>`_.
General Comments 0
You need to be logged in to leave comments. Login now