diff options
Diffstat (limited to 'dev-python/typing-extensions/files/typing-extensions-4.4.0-pypy-tests.patch')
-rw-r--r-- | dev-python/typing-extensions/files/typing-extensions-4.4.0-pypy-tests.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/typing-extensions/files/typing-extensions-4.4.0-pypy-tests.patch b/dev-python/typing-extensions/files/typing-extensions-4.4.0-pypy-tests.patch new file mode 100644 index 000000000000..479e11a7657b --- /dev/null +++ b/dev-python/typing-extensions/files/typing-extensions-4.4.0-pypy-tests.patch @@ -0,0 +1,28 @@ +From 3a54ef1ff6cab8c2946a78b066fd5bba6529945a Mon Sep 17 00:00:00 2001 +From: Sebastian Rittau <srittau@rittau.biz> +Date: Fri, 7 Oct 2022 14:47:24 +0200 +Subject: [PATCH] Fix tests when running pypy (#84) + +Also run CI against pypy and update actions. + +Closes: #83 +--- + .github/workflows/ci.yml | 14 +++++++------- + src/test_typing_extensions.py | 4 ++++ + 2 files changed, 11 insertions(+), 7 deletions(-) + +diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py +index 15b2147..7110f96 100644 +--- a/src/test_typing_extensions.py ++++ b/src/test_typing_extensions.py +@@ -509,6 +509,10 @@ def blah(): + + blah() + ++ @skipIf( ++ sys.implementation.name == "pypy", ++ "sum() and print() are not compiled in pypy" ++ ) + @patch( + f"{registry_holder.__name__}._overload_registry", + defaultdict(lambda: defaultdict(dict)) |