From b1c81de4fadbd00897700a7321f03b390d952b2e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 26 Aug 2021 00:09:36 +0100 Subject: gentoo resync : 26.08.2021 --- .../mypy/files/mypy-0.910-py3.10-tests.patch | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dev-python/mypy/files/mypy-0.910-py3.10-tests.patch (limited to 'dev-python/mypy/files/mypy-0.910-py3.10-tests.patch') diff --git a/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch b/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch new file mode 100644 index 000000000000..16e85049cc1e --- /dev/null +++ b/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch @@ -0,0 +1,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] -- cgit v1.2.3