#35571: TypeError in assertTemplateUsed when using pathlib.Path as template_name
------------------------------------+--------------------------------------
     Reporter:  Erik Z.             |                    Owner:  nobody
         Type:  Bug                 |                   Status:  closed
    Component:  Testing framework   |                  Version:  5.0
     Severity:  Normal              |               Resolution:  needsinfo
     Keywords:  assertTemplateUsed  |             Triage Stage:  Unreviewed
    Has patch:  1                   |      Needs documentation:  0
  Needs tests:  0                   |  Patch needs improvement:  0
Easy pickings:  1                   |                    UI/UX:  0
------------------------------------+--------------------------------------
Changes (by Natalia Bidart):

 * component:  Template system => Testing framework
 * keywords:  template_name => assertTemplateUsed
 * resolution:   => needsinfo
 * status:  new => closed

Comment:

 Hello Erik! Thank you for your report.

 The PR you have submitted is not ideal in that the "production" code is
 coercing to `str` in multiple places and this could impact performance.
 Following your description, and ideally, we should provide a fix within
 the Testing framework.

 To fully understand this issue, I would need a minimal django project
 (views and tests) so we can reproduce this, triage it and review the fix
 accordingly.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35571#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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190704d37f7-996a415a-5692-4408-8488-d23b41aa8aea-000000%40eu-central-1.amazonses.com.

Reply via email to