summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-12-17 06:30:50 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-12-17 06:30:50 +0000
commit62f1cb28cd48e1f90a0d21e09b3f0151b5a22fd4 (patch)
treeecd347791d183e34b0d39269c9ce42082bde770c /dev-python/cython/files/0.15.1-test.patch
parentAdded gtk3, sse2 flags. Removed gtksourceview flag, mandatory dependency when... (diff)
downloadhistorical-62f1cb28cd48e1f90a0d21e09b3f0151b5a22fd4.tar.gz
historical-62f1cb28cd48e1f90a0d21e09b3f0151b5a22fd4.tar.bz2
historical-62f1cb28cd48e1f90a0d21e09b3f0151b5a22fd4.zip
Bump. Patch for test submitted by Ian Delanay, bug #393679
Package-Manager: portage-2.1.10.41/cvs/Linux x86_64
Diffstat (limited to 'dev-python/cython/files/0.15.1-test.patch')
-rw-r--r--dev-python/cython/files/0.15.1-test.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/cython/files/0.15.1-test.patch b/dev-python/cython/files/0.15.1-test.patch
new file mode 100644
index 000000000000..6391a39bd337
--- /dev/null
+++ b/dev-python/cython/files/0.15.1-test.patch
@@ -0,0 +1,56 @@
+diff -ur Cython-0.15.1.orig/tests/run/numpy_test.pyx Cython-0.15.1/tests/run/numpy_test.pyx
+--- tests/run/numpy_test.pyx 2011-09-20 11:57:45.000000000 +0800
++++ tests/run/numpy_test.pyx 2011-12-10 05:07:32.155836575 +0800
+@@ -211,29 +211,6 @@
+
+ """
+
+- if np.__version__ >= '1.6':
+- __doc__ += u"""
+- The following expose bugs in Numpy (versions prior to 2011-04-02):
+-
+- >>> print(test_partially_packed_align(np.zeros((1,), dtype=np.dtype([('a', 'b'), ('b', 'i'), ('sub', np.dtype('b,i')), ('c', 'i')], align=True))))
+- array([(22, 23, (24, 25), 26)],
+- dtype=[('a', '|i1'), ('', '|V3'), ('b', '!i4'), ('sub', [('f0', '|i1'), ('f1', '!i4')]), ('', '|V3'), ('c', '!i4')])
+-
+- >>> print(test_partially_packed_align_2(np.zeros((1,), dtype=np.dtype([('a', 'b'), ('b', 'i'), ('c', 'b'), ('sub', np.dtype('b,i', align=True))]))))
+- array([(22, 23, 24, (27, 28))],
+- dtype=[('a', '|i1'), ('b', '!i4'), ('c', '|i1'), ('sub', [('f0', '|i1'), ('', '|V3'), ('f1', '!i4')])])
+-
+- >>> print(test_partially_packed_align(np.zeros((1,), dtype=np.dtype([('a', 'b'), ('b', 'i'), ('sub', np.dtype('b,i')), ('c', 'i')], align=False)))) #doctest: +ELLIPSIS
+- Traceback (most recent call last):
+- ...
+- ValueError: ...
+-
+- >>> print(test_partially_packed_align_2(np.zeros((1,), dtype=np.dtype([('a', 'b'), ('b', 'i'), ('c', 'b'), ('sub', np.dtype('b,i', align=False))])))) #doctest: +ELLIPSIS
+- Traceback (most recent call last):
+- ...
+- ValueError: ...
+- """
+-
+ except:
+ __doc__ = u""
+
+@@ -448,22 +425,6 @@
+ arr[0].b = 23
+ return repr(arr).replace('<', '!').replace('>', '!')
+
+-def test_partially_packed_align(np.ndarray[PartiallyPackedStruct] arr):
+- arr[0].a = 22
+- arr[0].b = 23
+- arr[0].sub.a = 24
+- arr[0].sub.b = 25
+- arr[0].c = 26
+- return repr(arr).replace('<', '!').replace('>', '!')
+-
+-def test_partially_packed_align_2(np.ndarray[PartiallyPackedStruct2] arr):
+- arr[0].a = 22
+- arr[0].b = 23
+- arr[0].c = 24
+- arr[0].sub.a = 27
+- arr[0].sub.b = 28
+- return repr(arr).replace('<', '!').replace('>', '!')
+-
+ def test_complextypes():
+ cdef np.complex64_t x64 = 1, y64 = 1j
+ cdef np.complex128_t x128 = 1, y128 = 1j