summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-02-12 21:20:02 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-02-12 21:20:02 -0600
commit1eff37ac2eb9dfbd191046a2aa0396747ee4746a (patch)
treea8385dc1a926ec6e2c88583a5faf028ddfd367f3
parent1cce5b99b94e1ff68d2f9539b534253a345c41de (diff)
downloadnumpy-1eff37ac2eb9dfbd191046a2aa0396747ee4746a.tar.gz
TST: test_sparse_field_assignment now succeeds now (was xfail)
There were some paths that manipulated the unused data. This was fixed in the big refactor (or earlier), I expect there were some fast paths for equal sized dtypes that kicked in before
-rw-r--r--numpy/core/tests/test_dtype.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/numpy/core/tests/test_dtype.py b/numpy/core/tests/test_dtype.py
index 528486a05..53e4821ae 100644
--- a/numpy/core/tests/test_dtype.py
+++ b/numpy/core/tests/test_dtype.py
@@ -751,8 +751,6 @@ class TestStructuredDtypeSparseFields:
sparse_dtype = np.dtype([('a', {'names':['ab'], 'formats':['f'],
'offsets':[4]}, (2, 3))])
- @pytest.mark.xfail(reason="inaccessible data is changed see gh-12686.")
- @pytest.mark.valgrind_error(reason="reads from uninitialized buffers.")
def test_sparse_field_assignment(self):
arr = np.zeros(3, self.dtype)
sparse_arr = arr.view(self.sparse_dtype)