Skip to content

Commit

Permalink
Skip unnecessary test for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling committed Aug 12, 2023
1 parent 96ebbb3 commit 61b11fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/panels/test_profiling.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -50,6 +53,10 @@ def test_cum_time_threshold(self):
self.assertNotIn("render", content)
self.assertValidHTML(content)

@unittest.skipIf(
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)
Expand Down

0 comments on commit 61b11fc

Please sign in to comment.