Skip to content

Commit

Permalink
Remove --python-version 3.7 references from tests (python#16848)
Browse files Browse the repository at this point in the history
Remove `--python-version 3.7` from tests if not necessary anymore or use
`3.8` where it makes sense instead.
  • Loading branch information
cdce8p authored Feb 1, 2024
1 parent d94b972 commit 9f51057
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 156 deletions.
5 changes: 0 additions & 5 deletions test-data/unit/check-async-await.test
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,6 @@ def bar() -> None:
[typing fixtures/typing-async.pyi]

[case testAsyncForOutsideCoroutine]
# flags: --python-version 3.7

async def g():
yield 0

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

[case testAsyncWithOutsideCoroutine]
# flags: --python-version 3.7

class C:
async def __aenter__(self): pass
async def __aexit__(self, x, y, z): pass
Expand All @@ -858,7 +854,6 @@ async with C() as x: # E: "async with" outside async function
[typing fixtures/typing-async.pyi]

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

class C:
Expand Down
1 change: 0 additions & 1 deletion test-data/unit/check-callable.test
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ else:
[builtins fixtures/callable.pyi]

[case testBuiltinsTypeAsCallable]
# flags: --python-version 3.7
from __future__ import annotations

reveal_type(type) # N: Revealed type is "def (x: Any) -> builtins.type"
Expand Down
1 change: 0 additions & 1 deletion test-data/unit/check-dataclass-transform.test
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Person('Jonh', 21, None) # E: Too many arguments for "Person"
[builtins fixtures/dataclasses.pyi]

[case testDataclassTransformIsFoundInTypingExtensions]
# flags: --python-version 3.7
from typing import Type
from typing_extensions import dataclass_transform

Expand Down
Loading

0 comments on commit 9f51057

Please sign in to comment.