diff options
author | mattip <matti.picus@gmail.com> | 2018-06-11 10:53:30 -0700 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2018-06-11 10:53:30 -0700 |
commit | b4e10f096f8c2c345de74a8713afd8cadc7930a9 (patch) | |
tree | 17d7cf242afe53970c517cc1fa5b90e79161ee90 /numpy | |
parent | 29b8cfb003393c7182b669d7d507105cb71aa637 (diff) | |
download | numpy-b4e10f096f8c2c345de74a8713afd8cadc7930a9.tar.gz |
add test from issue
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_memmap.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/tests/test_memmap.py b/numpy/core/tests/test_memmap.py index 6c88a9c2c..59ca28324 100644 --- a/numpy/core/tests/test_memmap.py +++ b/numpy/core/tests/test_memmap.py @@ -196,3 +196,8 @@ class TestMemmap(object): offset = mmap.ALLOCATIONGRANULARITY + 1 fp = memmap(self.tmpfp, shape=size, mode='w+', offset=offset) assert_(fp.offset == offset) + + def test_no_shape(self): + self.tmpfp.write(b'a'*16) + mm = memmap(self.tmpfp, dtype='float64') + assert_equal(mm.shape, (2,)) |