summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-10-25 14:14:24 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-10-25 14:14:24 +0200
commit68bb7164d4f93573c4e6a7249561b742818b39cb (patch)
tree0f6a99d73fa6f0fe356fb203f4b98037e5f0aed7
parent4a7467892bb60f9381b5c548d4600804c983c5d1 (diff)
downloadcython-68bb7164d4f93573c4e6a7249561b742818b39cb.tar.gz
Remove dead test code.
-rw-r--r--tests/run/numpy_test.pyx27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/run/numpy_test.pyx b/tests/run/numpy_test.pyx
index d2718a463..67db2b638 100644
--- a/tests/run/numpy_test.pyx
+++ b/tests/run/numpy_test.pyx
@@ -231,33 +231,6 @@ try:
dtype=[('x', '!f8'), ('y', '!f8')])
"""
-
- if np.__version__ >= '1.6' and False:
- __doc__ += u"""
- Tests are DISABLED as the buffer format parser does not align members
- of aligned structs in padded structs in relation to the possibly
- unaligned initial offset.
-
- 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""