Skip to content

Commit d5e5e1b

Browse files
author
Guido van Rossum
committed
Fix tests now that errors have line numbers.
1 parent d75dacc commit d5e5e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def f() -> int:
6767
return x
6868
[out]
6969
main: note: In function "f":
70-
main: error: Incompatible types in await (actual type Iterator[Any], expected Awaitable)
70+
main:6: error: Incompatible types in await (actual type Iterator[Any], expected Awaitable)
7171

7272
[case testAwaitArgumentError]
7373
# options: fast_parser
@@ -79,7 +79,7 @@ async def f() -> int:
7979
[builtins fixtures/async_await.py]
8080
[out]
8181
main: note: In function "f":
82-
main: error: Incompatible types in await (actual type "int", expected Awaitable)
82+
main:5: error: Incompatible types in await (actual type "int", expected Awaitable)
8383

8484
[case testAwaitResultError]
8585
# options: fast_parser

0 commit comments

Comments
 (0)