summaryrefslogtreecommitdiff
path: root/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch
blob: 16e85049cc1e81d84788a7bf84206e474f35db07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff --git a/mypyc/test-data/run-misc.test b/mypyc/test-data/run-misc.test
index 431efc228..0c1a26c1b 100644
--- a/mypyc/test-data/run-misc.test
+++ b/mypyc/test-data/run-misc.test
@@ -13,8 +13,7 @@ async def g() -> int:
 async def f() -> int:
     return await g()
 
-loop = asyncio.get_event_loop()
-result = loop.run_until_complete(f())
+result = asyncio.run(f())
 assert result == 1
 
 [typing fixtures/typing-full.pyi]
@@ -22,8 +21,8 @@ assert result == 1
 [file driver.py]
 from native import f
 import asyncio
-loop = asyncio.get_event_loop()
-result = loop.run_until_complete(f())
+
+result = asyncio.run(f())
 assert result == 1
 
 [case testMaybeUninitVar]
diff --git a/test-data/stdlib-samples/3.2/random.py b/test-data/stdlib-samples/3.2/random.py
index 7eecdfe04..82bda03f7 100644
--- a/test-data/stdlib-samples/3.2/random.py
+++ b/test-data/stdlib-samples/3.2/random.py
@@ -41,7 +41,7 @@ from types import MethodType as _MethodType, BuiltinMethodType as _BuiltinMethod
 from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
 from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin
 from os import urandom as _urandom
-from collections import Set as _Set, Sequence as _Sequence
+from collections.abc import Set as _Set, Sequence as _Sequence
 from hashlib import sha512 as _sha512
 
 from typing import (
diff --git a/test-data/unit/cmdline.test b/test-data/unit/cmdline.test
index 92ef7e069..87d04f3c4 100644
--- a/test-data/unit/cmdline.test
+++ b/test-data/unit/cmdline.test
@@ -791,7 +791,7 @@ c.py:2: error: Argument 1 to "bar" has incompatible type "str"; expected "int"
 [case testSrcPEP420Packages]
 # cmd: mypy -p anamespace --namespace-packages
 [file mypy.ini]
-\[mypy]]
+\[mypy]
 mypy_path = src
 [file src/setup.cfg]
 [file src/anamespace/foo/__init__.py]