#35622: Make unittest ignore Django frames in tracebacks -------------------------------------+------------------------------------- Reporter: Adam Johnson | Owner: Adam Type: | Johnson Cleanup/optimization | Status: assigned Component: Testing framework | Version: dev Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Natalia Bidart):
* has_patch: 0 => 1 * owner: (none) => Adam Johnson * stage: Unreviewed => Accepted * status: new => assigned Comment: Thank you Adam for this ticket! I agree with your analysis. For posterity, the [https://github.com/python/cpython/blob/bc264eac3ad14dab748e33b3d714c2674872791f/Lib/unittest/result.py#L235 referenced implementation] looks like this: {{{#!python def _is_relevant_tb_level(self, tb): return '__unittest' in tb.tb_frame.f_globals }}} -- Ticket URL: <https://code.djangoproject.com/ticket/35622#comment:1> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070190db4ae416-21c0dc47-a46a-4196-98e7-6bec2798d961-000000%40eu-central-1.amazonses.com.