Skip to content

Commit

Permalink
TST: Unpickled void scalars must be behaved
Browse files Browse the repository at this point in the history
Unpickled void scalars must be both aligned and writeable.
  • Loading branch information
gmarkall committed Jan 29, 2016
1 parent 38fdd76 commit 7c03f21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/core/tests/test_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ def test_pickle_3(self):
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
Expand Down

0 comments on commit 7c03f21

Please sign in to comment.