#33149: Make --pdb work with subTest().
-----------------------------------+------------------------------------
Reporter: Lucidiot | Owner: Abhyudai
Type: Bug | Status: assigned
Component: Testing framework | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Comment (by Abhyudai):
Just to be on the same page, this is the diff that is being talked about,
no?
{{{
diff --git a/django/test/runner.py b/django/test/runner.py
index 225bc19b09..9ea67ce4b6 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -275,6 +275,7 @@ failure and get a correct traceback.
self.check_picklable(test, err)
self.check_subtest_picklable(test, subtest)
self.events.append(('addSubTest', self.test_index, subtest,
err))
+ self.debug(err)
super().addSubTest(test, subtest, err)
def addSuccess(self, test):
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33149#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.5a7dba1430ba1954669f166bf50012f6%40djangoproject.com.