aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-12-02 15:52:21 +0000
committerAisha Tammy <gentoo@aisha.cc>2020-12-02 15:52:21 +0000
commitfb03d3745caf59053460402146286dffe8e67025 (patch)
tree652afb36af77226a83d0d58fc1987460c6276328
parentdev-python/numba: version bump to 0.52.0 (diff)
downloadsci-fb03d3745caf59053460402146286dffe8e67025.tar.gz
sci-fb03d3745caf59053460402146286dffe8e67025.tar.bz2
sci-fb03d3745caf59053460402146286dffe8e67025.zip
dev-python/numba: add updated patch
refreshed patch by Bernd Feige <Bernd.Feige@gmx.net> Closes: https://bugs.gentoo.org/758020 Package-Manager: Portage-3.0.8, Repoman-3.0.1 RepoMan-Options: --force Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
-rw-r--r--dev-python/numba/files/numba-0.52.0-skip_tests.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/numba/files/numba-0.52.0-skip_tests.patch b/dev-python/numba/files/numba-0.52.0-skip_tests.patch
new file mode 100644
index 000000000..f31af4bfb
--- /dev/null
+++ b/dev-python/numba/files/numba-0.52.0-skip_tests.patch
@@ -0,0 +1,34 @@
+Index: numba-0.52.0/numba/tests/test_jitclasses.py
+===================================================================
+--- numba-0.52.0.orig/numba/tests/test_jitclasses.py
++++ numba-0.52.0/numba/tests/test_jitclasses.py
+@@ -929,6 +929,7 @@ class TestJitClass(TestCase, MemoryLeakM
+ self.assertEqual(t[2:2:1], 2)
+ self.assertEqual(t[6:6:1], 3)
+
++ @unittest.skip("Gentoo has not reverted the LLVM 'truncate longlabel' patch")
+ def test_jitclass_longlabel_not_truncated(self):
+ # See issue #3872, llvm 7 introduced a max label length of 1024 chars
+ # Numba ships patched llvm 7.1 (ppc64le) and patched llvm 8 to undo this
+Index: numba-0.52.0/numba/tests/test_record_dtype.py
+===================================================================
+--- numba-0.52.0.orig/numba/tests/test_record_dtype.py
++++ numba-0.52.0/numba/tests/test_record_dtype.py
+@@ -796,7 +796,7 @@ class TestRecordDtype(unittest.TestCase)
+ # len(transformed) is generally 10, but could be longer if a large
+ # number of typecodes are in use. Checking <20 should provide enough
+ # tolerance.
+- self.assertLess(len(transformed), 20)
++ self.assertLessEqual(len(transformed), 20)
+
+ struct_arr = types.Array(rec, 1, 'C')
+ transformed = mangle_type(struct_arr)
+@@ -804,7 +804,7 @@ class TestRecordDtype(unittest.TestCase)
+ self.assertNotIn('first', transformed)
+ self.assertNotIn('second', transformed)
+ # Length is usually 50 - 5 chars tolerance as above.
+- self.assertLess(len(transformed), 50)
++ self.assertLessEqual(len(transformed), 50)
+
+ def test_record_two_arrays(self):
+ """