diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-01-17 22:09:56 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-01-20 14:07:28 +0100 |
| commit | f5772de69679efb54129ac1cbca3579b512778af (patch) | |
| tree | ab215760e2e77124bbb8970b0913c2a99ae68743 /tests/test_runner/test_debug_sql.py | |
| parent | 61dae11df52fae71fc3050974ac459f362c9dfd7 (diff) | |
Fixed #36005 -- Dropped support for Python 3.10 and 3.11.
Diffstat (limited to 'tests/test_runner/test_debug_sql.py')
| -rw-r--r-- | tests/test_runner/test_debug_sql.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/test_runner/test_debug_sql.py b/tests/test_runner/test_debug_sql.py index e7e8d14fbd..27fc4001c2 100644 --- a/tests/test_runner/test_debug_sql.py +++ b/tests/test_runner/test_debug_sql.py @@ -4,7 +4,6 @@ from io import StringIO from django.db import connection from django.test import TestCase from django.test.runner import DiscoverRunner -from django.utils.version import PY311 from .models import Person @@ -114,17 +113,15 @@ class TestDebugSQL(unittest.TestCase): ), ] - # Python 3.11 uses fully qualified test name in the output. - method_name = ".runTest" if PY311 else "" test_class_path = "test_runner.test_debug_sql.TestDebugSQL" verbose_expected_outputs = [ - f"runTest ({test_class_path}.FailingTest{method_name}) ... FAIL", - f"runTest ({test_class_path}.ErrorTest{method_name}) ... ERROR", - f"runTest ({test_class_path}.PassingTest{method_name}) ... ok", + f"runTest ({test_class_path}.FailingTest.runTest) ... FAIL", + f"runTest ({test_class_path}.ErrorTest.runTest) ... ERROR", + f"runTest ({test_class_path}.PassingTest.runTest) ... ok", # If there are errors/failures in subtests but not in test itself, # the status is not written. That behavior comes from Python. - f"runTest ({test_class_path}.FailingSubTest{method_name}) ...", - f"runTest ({test_class_path}.ErrorSubTest{method_name}) ...", + f"runTest ({test_class_path}.FailingSubTest.runTest) ...", + f"runTest ({test_class_path}.ErrorSubTest.runTest) ...", ( """SELECT COUNT(*) AS "__count"\n""" """FROM "test_runner_person"\nWHERE """ |
