Source: python-django-debug-toolbar Version: 1:8.0.0-1 Severity: serious X-Debbugs-Cc: [email protected]
Dear Maintainer, Python 3.15 changed the cProfile module (now profile.tracing); as part of that change, the undocumented cProfile.label function disappeared. https://docs.python.org/3/whatsnew/3.15.html#pep-799-a-dedicated-profiling-package debug_toolbar/panels/profiling.py makes use of cProfile.label, which means that the autopkgtests for python-django-debug-toolbar are currently failing. //--- 55s ERROR: test_generate_stats_no_root_func (tests.panels.test_profiling.ProfilingPanelTestCase.test_generate_stats_no_root_func) 55s Test generating stats using profiler without root function. 55s ---------------------------------------------------------------------- 55s Traceback (most recent call last): 55s File "/var/tmp/autopkgtest_tmp.swvKoO/tests/panels/test_profiling.py", line 88, in test_generate_stats_no_root_func 55s self.panel.generate_stats(self.request, response) 55s ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 55s File "/usr/lib/python3/dist-packages/debug_toolbar/panels/profiling.py", line 187, in generate_stats 55s root_func = cProfile.label(super().process_request.__code__) 55s ^^^^^^^^^^^^^^ 55s AttributeError: module 'cProfile' has no attribute 'label' [...] 55s FAILED (errors=6, skipped=32, expected failures=1) ---// This is fixed upstream in PR 2483 https://github.com/django-commons/django-debug-toolbar/pull/2483 regards Stuart

