Skip to content

Commit 9f51057

Browse files
authored
Remove --python-version 3.7 references from tests (#16848)
Remove `--python-version 3.7` from tests if not necessary anymore or use `3.8` where it makes sense instead.
1 parent d94b972 commit 9f51057

19 files changed

+38
-156
lines changed

test-data/unit/check-async-await.test

-5
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,6 @@ def bar() -> None:
819819
[typing fixtures/typing-async.pyi]
820820

821821
[case testAsyncForOutsideCoroutine]
822-
# flags: --python-version 3.7
823-
824822
async def g():
825823
yield 0
826824

@@ -841,8 +839,6 @@ async for x in g(): ... # E: "async for" outside async function
841839
[typing fixtures/typing-async.pyi]
842840

843841
[case testAsyncWithOutsideCoroutine]
844-
# flags: --python-version 3.7
845-
846842
class C:
847843
async def __aenter__(self): pass
848844
async def __aexit__(self, x, y, z): pass
@@ -858,7 +854,6 @@ async with C() as x: # E: "async with" outside async function
858854
[typing fixtures/typing-async.pyi]
859855

860856
[case testAwaitMissingNote]
861-
# flags: --python-version 3.7
862857
from typing import Generic, TypeVar, Generator, Any, Awaitable, Type
863858

864859
class C:

test-data/unit/check-callable.test

-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ else:
525525
[builtins fixtures/callable.pyi]
526526

527527
[case testBuiltinsTypeAsCallable]
528-
# flags: --python-version 3.7
529528
from __future__ import annotations
530529

531530
reveal_type(type) # N: Revealed type is "def (x: Any) -> builtins.type"

test-data/unit/check-dataclass-transform.test

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Person('Jonh', 21, None) # E: Too many arguments for "Person"
2222
[builtins fixtures/dataclasses.pyi]
2323

2424
[case testDataclassTransformIsFoundInTypingExtensions]
25-
# flags: --python-version 3.7
2625
from typing import Type
2726
from typing_extensions import dataclass_transform
2827

0 commit comments

Comments
 (0)