#35844: Python 3.14 compatibility.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: New feature | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia Bidart):
GHA are showing this error on test runs on linux, which I also get
locally:
{{{
======================================================================
FAIL: test_custom_project_template_context_variables
(admin_scripts.tests.StartProject.test_custom_project_template_context_variables)
Make sure template context variables are rendered with proper values
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/unittest/case.py",
line 58, in testPartExecutor
yield
File
"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/unittest/case.py",
line 669, in run
self._callTestMethod(testMethod)
File
"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/unittest/case.py",
line 615, in _callTestMethod
result = method()
^^^^^^^^^^^^^^^
File "/home/runner/work/django/django/tests/admin_scripts/tests.py",
line 2859, in test_custom_project_template_context_variables
self.assertIn('project_directory = "%s"' % testproject_dir, content)
^^^^^^^^^^^
File
"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/unittest/case.py",
line 1192, in assertIn
self.fail(self._formatMessage(msg, standardMsg))
^^^^^^^^^^^
File
"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/unittest/case.py",
line 750, in fail
raise self.failureException(msg)
^^^^^^^^^^^^^^^
AssertionError: 'project_directory =
"/tmp/django_znh73pf9/django_hl40h621/tmp44uj0vns/test_project/project_dir"'
not found in '# The manage.py of the another_project test project\n\n#
template context:\nproject_name = "another_project"\nproject_directory =
(\n
"/tmp/django_znh73pf9/django_hl40h621/tmp44uj0vns/test_project/project_dir"\n)\nsecret_key
= "django-insecure-j8z2ob$oh3de^_2&lv=z9b+=h*pnh_c#y3##je+%jy&a6+prr1"\n'
}}}
I'll work on a fix.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35844#comment:29>