mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #36005 -- Dropped support for Python 3.10 and 3.11.
This commit is contained in:
committed by
Sarah Boyce
parent
61dae11df5
commit
f5772de696
@@ -16,7 +16,6 @@ from django.test.utils import (
|
||||
captured_stderr,
|
||||
captured_stdout,
|
||||
)
|
||||
from django.utils.version import PY312
|
||||
|
||||
|
||||
@contextmanager
|
||||
@@ -768,7 +767,6 @@ class DiscoverRunnerTests(SimpleTestCase):
|
||||
failures = runner.suite_result(suite, result)
|
||||
self.assertEqual(failures, expected_failures)
|
||||
|
||||
@unittest.skipUnless(PY312, "unittest --durations option requires Python 3.12")
|
||||
def test_durations(self):
|
||||
with captured_stderr() as stderr, captured_stdout():
|
||||
runner = DiscoverRunner(durations=10)
|
||||
@@ -776,7 +774,6 @@ class DiscoverRunnerTests(SimpleTestCase):
|
||||
runner.run_suite(suite)
|
||||
self.assertIn("Slowest test durations", stderr.getvalue())
|
||||
|
||||
@unittest.skipUnless(PY312, "unittest --durations option requires Python 3.12")
|
||||
def test_durations_debug_sql(self):
|
||||
with captured_stderr() as stderr, captured_stdout():
|
||||
runner = DiscoverRunner(durations=10, debug_sql=True)
|
||||
|
||||
Reference in New Issue
Block a user