diff options
author | 2021-04-05 20:00:13 +0200 | |
---|---|---|
committer | 2021-04-05 20:00:13 +0200 | |
commit | a07d25d48f4a37a32462f90050d6ac269258a08b (patch) | |
tree | 76479b30cb0e9e437267aa800a56cd4e6c1bb9c5 /dev-python/astroid/files | |
parent | dev-python/zipp: Remove old (diff) | |
download | gentoo-a07d25d48f4a37a32462f90050d6ac269258a08b.tar.gz gentoo-a07d25d48f4a37a32462f90050d6ac269258a08b.tar.bz2 gentoo-a07d25d48f4a37a32462f90050d6ac269258a08b.zip |
dev-python/astroid: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/astroid/files')
-rw-r--r-- | dev-python/astroid/files/astroid-2.4.2-py39.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/dev-python/astroid/files/astroid-2.4.2-py39.patch b/dev-python/astroid/files/astroid-2.4.2-py39.patch deleted file mode 100644 index 0f838b7214a4..000000000000 --- a/dev-python/astroid/files/astroid-2.4.2-py39.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 3ffe25f8e3cdb30f0dcfb68f4373370828894727 Mon Sep 17 00:00:00 2001 -From: Karthikeyan Singaravelan <tir.karthi@gmail.com> -Date: Tue, 4 Aug 2020 10:11:44 +0000 -Subject: [PATCH] Skip test for | in dictionaries due to PEP-584 in Python 3.9+ - ---- - tests/unittest_inference.py | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/tests/unittest_inference.py b/tests/unittest_inference.py -index 76c7e879..b7bc732d 100644 ---- a/tests/unittest_inference.py -+++ b/tests/unittest_inference.py -@@ -2455,7 +2455,6 @@ def test_binary_op_type_errors(self): - 1 ** (lambda x: x) #@ - {} * {} #@ - {} - {} #@ -- {} | {} #@ - {} >> {} #@ - [] + () #@ - () + [] #@ -@@ -2500,7 +2499,6 @@ def __radd__(self, other): - msg.format(op="**", lhs="int", rhs="function"), - msg.format(op="*", lhs="dict", rhs="dict"), - msg.format(op="-", lhs="dict", rhs="dict"), -- msg.format(op="|", lhs="dict", rhs="dict"), - msg.format(op=">>", lhs="dict", rhs="dict"), - msg.format(op="+", lhs="list", rhs="tuple"), - msg.format(op="+", lhs="tuple", rhs="list"), -@@ -2515,6 +2513,12 @@ def __radd__(self, other): - msg.format(op="+=", lhs="int", rhs="A"), - msg.format(op="+=", lhs="int", rhs="list"), - ] -+ -+ # PEP-584 supports | for dictionary union -+ if sys.version_info < (3, 9): -+ ast_nodes.append(extract_node("{} | {} #@")) -+ expected.append(msg.format(op="|", lhs="dict", rhs="dict")) -+ - for node, expected_value in zip(ast_nodes, expected): - errors = node.type_errors() - self.assertEqual(len(errors), 1) |