Fixed #32355 -- Dropped support for Python 3.6 and 3.7

This commit is contained in:
Mariusz Felisiak 2021-01-19 08:35:16 +01:00 committed by Carlton Gibson
parent 9c6ba87692
commit ec0ff40631
33 changed files with 59 additions and 274 deletions

View file

@ -28,7 +28,6 @@ else:
RemovedInDjango41Warning, RemovedInDjango50Warning,
)
from django.utils.log import DEFAULT_LOGGING
from django.utils.version import PY37
try:
import MySQLdb
@ -521,14 +520,13 @@ if __name__ == "__main__":
'--timing', action='store_true',
help='Output timings, including database set up and total run time.',
)
if PY37:
parser.add_argument(
'-k', dest='test_name_patterns', action='append',
help=(
'Only run test methods and classes matching test name pattern. '
'Same as unittest -k option. Can be used multiple times.'
),
)
parser.add_argument(
'-k', dest='test_name_patterns', action='append',
help=(
'Only run test methods and classes matching test name pattern. '
'Same as unittest -k option. Can be used multiple times.'
),
)
options = parser.parse_args()