From 1711c509faf3111bdf5a3a860b2cd01c0dc5d233 Mon Sep 17 00:00:00 2001 From: Pavel Savchenko Date: Wed, 26 Oct 2016 23:10:17 +0200 Subject: Fixed #27391 -- Implemented SimpleTestCase.debug(). debug() should bubbled up exceptions if occurring in test, but behave the same as run() when no exceptions occurred. --- docs/releases/3.1.txt | 4 +++- docs/topics/testing/tools.txt | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index a42d71c855..a8aaa8e4f9 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -198,7 +198,9 @@ Templates Tests ~~~~~ -* ... +* :class:`~django.test.SimpleTestCase` now implements the ``debug()`` method to + allow running a test without collecting the result and catching exceptions. + This can be used to support running tests under a debugger. URLs ~~~~ diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 41652cbee1..13ae83dc80 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -775,6 +775,11 @@ If your tests make any database queries, use subclasses :exc:`unittest.SkipTest` in ``setUpClass()``, be sure to do it before calling ``super()`` to avoid this. +.. versionchanged:: 3.1 + + The ``debug()`` method was implemented to allow running a test without + collecting the result and catching exceptions. + ``TransactionTestCase`` ----------------------- -- cgit v1.3