diff options
| author | Alfredo Tupone <tupone@gentoo.org> | 2023-12-30 20:07:30 +0100 |
|---|---|---|
| committer | Alfredo Tupone <tupone@gentoo.org> | 2023-12-30 20:17:20 +0100 |
| commit | 6053ed3a3d3178ef3260734ae6c6776e2b02789f (patch) | |
| tree | b016fa514230f32d5389ffb341ce1b7cd9722dd6 /dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch | |
| parent | 34b8ffe170a721ff72c2c5eed46c6e3bb7cd16d4 (diff) | |
| download | gentoo-6053ed3a3d3178ef3260734ae6c6776e2b02789f.tar.gz gentoo-6053ed3a3d3178ef3260734ae6c6776e2b02789f.tar.bz2 gentoo-6053ed3a3d3178ef3260734ae6c6776e2b02789f.zip | |
dev-python/django-debug-toolbar: PythonCompatUpdate
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch')
| -rw-r--r-- | dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch b/dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch new file mode 100644 index 000000000000..69a5558da31b --- /dev/null +++ b/dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch @@ -0,0 +1,20 @@ +--- a/tests/panels/test_profiling.py 2023-12-30 20:02:22.263807899 +0100 ++++ b/tests/panels/test_profiling.py 2023-12-30 20:03:44.655458186 +0100 +@@ -1,3 +1,6 @@ ++import sys ++import unittest ++ + from django.contrib.auth.models import User + from django.db import IntegrityError, transaction + from django.http import HttpResponse +@@ -50,6 +53,10 @@ + self.assertNotIn("render", content) + self.assertValidHTML(content) + ++ @unittest.skipUnless( ++ sys.version_info < (3, 12, 0), ++ "Python 3.12 no longer contains a frame for list comprehensions.", ++ ) + def test_listcomp_escaped(self): + self._get_response = lambda request: listcomp_view(request) + response = self.panel.process_request(self.request) |
