fix segfault in test_pickle

9 jobs for pybind11 in 19 minutes and 39 seconds (queued for 1 second)
Status Name Job ID Coverage
  Build Gcc Nocheck
passed job_make_gcc_nocheck #5454

00:01:37

 
  Test Gcc Nocheck
passed job_test_gcc_nocheck #5455

00:00:19

 
  Code Coverage
passed job_code_coverage #5456

00:05:19

76.984%
 
  Build Python2
passed job_build_python2 #5457

00:02:21

 
  Build Python3
passed job_build_python3 #5458

00:02:22

 
  Test Python2
passed job_test_python2 #5459

00:02:25

 
  Test Python3
passed job_test_python3 #5460

00:02:28

 
  Build Clang
passed job_make_clang #5461

00:02:26

 
  Test Clang
passed job_test_clang #5462

00:00:18