Fix crash of get_shape and add test

12 jobs for fix-issue4 in 6 minutes and 31 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #50631
conda-linux
build_linux_27

00:01:51

passed #50633
conda-linux
build_linux_34

00:01:50

passed #50635
conda-linux
build_linux_35

00:01:50

passed #50636
conda-macosx
build_macosx_27

00:03:16

passed #50634
conda-macosx
build_macosx_34

00:03:13

passed #50632
conda-macosx
build_macosx_35

00:03:23

 
  Test
passed #50641
conda-linux
test_linux_27

00:01:03

passed #50639
conda-linux
test_linux_34

00:01:05

passed #50637
conda-linux
test_linux_35

00:01:06

passed #50638
conda-macosx
test_macosx_27

00:03:08

passed #50640
conda-macosx
test_macosx_34

00:03:06

passed #50642
conda-macosx
test_macosx_35

00:03:05