summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorGraham Markall <graham.markall@continuum.io>2016-01-29 15:55:09 +0000
committerGraham Markall <graham.markall@continuum.io>2016-01-29 15:55:09 +0000
commit7c03f21a133aae86f661c1dc57d71fa06eca9979 (patch)
treeab5b9355a9488bce052667fa7bcf2b59cd42cb05 /numpy/core
parent38fdd765536d868101167474d87e307167e49fb9 (diff)
downloadnumpy-7c03f21a133aae86f661c1dc57d71fa06eca9979.tar.gz
TST: Unpickled void scalars must be behaved
Unpickled void scalars must be both aligned and writeable.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_records.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/tests/test_records.py b/numpy/core/tests/test_records.py
index e46cf90e1..2c85546a7 100644
--- a/numpy/core/tests/test_records.py
+++ b/numpy/core/tests/test_records.py
@@ -305,6 +305,8 @@ class TestRecord(TestCase):
pa = pickle.loads(pickle.dumps(a[0]))
assert_(pa.flags.c_contiguous)
assert_(pa.flags.f_contiguous)
+ assert_(pa.flags.writeable)
+ assert_(pa.flags.aligned)
def test_objview_record(self):
# https://github.com/numpy/numpy/issues/2599