1
0
mirror of https://github.com/django/django.git synced 2025-10-29 16:46:11 +00:00

Refs #36559, #35667 -- Used skip_file_prefixes in PartialTemplate.source warning.

This commit is contained in:
farhan
2025-09-04 17:05:03 +05:00
committed by Jacob Walls
parent 686a8a62ae
commit 34bd3ed944
2 changed files with 5 additions and 2 deletions

View File

@@ -144,8 +144,9 @@ class PartialTagsTests(TestCase):
RuntimeWarning,
"PartialTemplate.source is only available when template "
"debugging is enabled.",
):
) as ctx:
self.assertEqual(partial.template.source, "")
self.assertEqual(ctx.filename, __file__)
class RobustPartialHandlingTests(TestCase):