summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPavel Savchenko <asfaltboy@gmail.com>2016-10-26 23:10:17 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-10-18 12:22:51 +0200
commit1711c509faf3111bdf5a3a860b2cd01c0dc5d233 (patch)
tree84354e38d069e4ce0132288f9bbb0305d7934c4a /docs
parentdc8cd2fefd028913e3273927342374f5259cc566 (diff)
Fixed #27391 -- Implemented SimpleTestCase.debug().
debug() should bubbled up exceptions if occurring in test, but behave the same as run() when no exceptions occurred.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.1.txt4
-rw-r--r--docs/topics/testing/tools.txt5
2 files changed, 8 insertions, 1 deletions
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``
-----------------------