mirror of
https://github.com/django/django.git
synced 2025-08-18 17:50:58 +00:00
Fixed #36005 -- Dropped support for Python 3.10 and 3.11.
This commit is contained in:
parent
61dae11df5
commit
f5772de696
30 changed files with 79 additions and 266 deletions
|
@ -34,7 +34,7 @@ else:
|
|||
)
|
||||
from django.utils.functional import classproperty
|
||||
from django.utils.log import DEFAULT_LOGGING
|
||||
from django.utils.version import PY312, PYPY
|
||||
from django.utils.version import PYPY
|
||||
|
||||
|
||||
try:
|
||||
|
@ -691,15 +691,14 @@ if __name__ == "__main__":
|
|||
"Same as unittest -k option. Can be used multiple times."
|
||||
),
|
||||
)
|
||||
if PY312:
|
||||
parser.add_argument(
|
||||
"--durations",
|
||||
dest="durations",
|
||||
type=int,
|
||||
default=None,
|
||||
metavar="N",
|
||||
help="Show the N slowest test cases (N=0 for all).",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--durations",
|
||||
dest="durations",
|
||||
type=int,
|
||||
default=None,
|
||||
metavar="N",
|
||||
help="Show the N slowest test cases (N=0 for all).",
|
||||
)
|
||||
|
||||
options = parser.parse_args()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue