@@ -4681,57 +4681,43 @@ def _loads(self, obj):
46814681
46824682 # version 0 pickles, using protocol=2 to pickle
46834683 # version 0 doesn't have a version field
4684- @pytest .mark .filterwarnings (
4685- "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning" )
46864684 def test_version0_int8 (self ):
46874685 s = b"\x80 \x02 cnumpy.core._internal\n _reconstruct\n q\x01 cnumpy\n ndarray\n q\x02 K\x00 \x85 U\x01 b\x87 Rq\x03 (K\x04 \x85 cnumpy\n dtype\n q\x04 U\x02 i1K\x00 K\x01 \x87 Rq\x05 (U\x01 |NNJ\xff \xff \xff \xff J\xff \xff \xff \xff tb\x89 U\x04 \x01 \x02 \x03 \x04 tb."
46884686 a = np .array ([1 , 2 , 3 , 4 ], dtype = np .int8 )
46894687 p = self ._loads (s )
46904688 assert_equal (a , p )
46914689
4692- @pytest .mark .filterwarnings (
4693- "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning" )
46944690 def test_version0_float32 (self ):
46954691 s = b"\x80 \x02 cnumpy.core._internal\n _reconstruct\n q\x01 cnumpy\n ndarray\n q\x02 K\x00 \x85 U\x01 b\x87 Rq\x03 (K\x04 \x85 cnumpy\n dtype\n q\x04 U\x02 f4K\x00 K\x01 \x87 Rq\x05 (U\x01 <NNJ\xff \xff \xff \xff J\xff \xff \xff \xff tb\x89 U\x10 \x00 \x00 \x80 ?\x00 \x00 \x00 @\x00 \x00 @@\x00 \x00 \x80 @tb."
46964692 a = np .array ([1.0 , 2.0 , 3.0 , 4.0 ], dtype = np .float32 )
46974693 p = self ._loads (s )
46984694 assert_equal (a , p )
46994695
4700- @pytest .mark .filterwarnings (
4701- "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning" )
47024696 def test_version0_object (self ):
47034697 s = b"\x80 \x02 cnumpy.core._internal\n _reconstruct\n q\x01 cnumpy\n ndarray\n q\x02 K\x00 \x85 U\x01 b\x87 Rq\x03 (K\x02 \x85 cnumpy\n dtype\n q\x04 U\x02 O8K\x00 K\x01 \x87 Rq\x05 (U\x01 |NNJ\xff \xff \xff \xff J\xff \xff \xff \xff tb\x89 ]q\x06 (}q\x07 U\x01 aK\x01 s}q\x08 U\x01 bK\x02 setb."
47044698 a = np .array ([{'a' : 1 }, {'b' : 2 }])
47054699 p = self ._loads (s )
47064700 assert_equal (a , p )
47074701
47084702 # version 1 pickles, using protocol=2 to pickle
4709- @pytest .mark .filterwarnings (
4710- "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning" )
47114703 def test_version1_int8 (self ):
47124704 s = b"\x80 \x02 cnumpy.core._internal\n _reconstruct\n q\x01 cnumpy\n ndarray\n q\x02 K\x00 \x85 U\x01 b\x87 Rq\x03 (K\x01 K\x04 \x85 cnumpy\n dtype\n q\x04 U\x02 i1K\x00 K\x01 \x87 Rq\x05 (K\x01 U\x01 |NNJ\xff \xff \xff \xff J\xff \xff \xff \xff tb\x89 U\x04 \x01 \x02 \x03 \x04 tb."
47134705 a = np .array ([1 , 2 , 3 , 4 ], dtype = np .int8 )
47144706 p = self ._loads (s )
47154707 assert_equal (a , p )
47164708
4717- @pytest .mark .filterwarnings (
4718- "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning" )
47194709 def test_version1_float32 (self ):
47204710 s = b"\x80 \x02 cnumpy.core._internal\n _reconstruct\n q\x01 cnumpy\n ndarray\n q\x02 K\x00 \x85 U\x01 b\x87 Rq\x03 (K\x01 K\x04 \x85 cnumpy\n dtype\n q\x04 U\x02 f4K\x00 K\x01 \x87 Rq\x05 (K\x01 U\x01 <NNJ\xff \xff \xff \xff J\xff \xff \xff \xff tb\x89 U\x10 \x00 \x00 \x80 ?\x00 \x00 \x00 @\x00 \x00 @@\x00 \x00 \x80 @tb."
47214711 a = np .array ([1.0 , 2.0 , 3.0 , 4.0 ], dtype = np .float32 )
47224712 p = self ._loads (s )
47234713 assert_equal (a , p )
47244714
4725- @pytest .mark .filterwarnings (
4726- "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning" )
47274715 def test_version1_object (self ):
47284716 s = b"\x80 \x02 cnumpy.core._internal\n _reconstruct\n q\x01 cnumpy\n ndarray\n q\x02 K\x00 \x85 U\x01 b\x87 Rq\x03 (K\x01 K\x02 \x85 cnumpy\n dtype\n q\x04 U\x02 O8K\x00 K\x01 \x87 Rq\x05 (K\x01 U\x01 |NNJ\xff \xff \xff \xff J\xff \xff \xff \xff tb\x89 ]q\x06 (}q\x07 U\x01 aK\x01 s}q\x08 U\x01 bK\x02 setb."
47294717 a = np .array ([{'a' : 1 }, {'b' : 2 }])
47304718 p = self ._loads (s )
47314719 assert_equal (a , p )
47324720
4733- @pytest .mark .filterwarnings (
4734- "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning" )
47354721 def test_subarray_int_shape (self ):
47364722 s = b"cnumpy.core.multiarray\n _reconstruct\n p0\n (cnumpy\n ndarray\n p1\n (I0\n tp2\n S'b'\n p3\n tp4\n Rp5\n (I1\n (I1\n tp6\n cnumpy\n dtype\n p7\n (S'V6'\n p8\n I0\n I1\n tp9\n Rp10\n (I3\n S'|'\n p11\n N(S'a'\n p12\n g3\n tp13\n (dp14\n g12\n (g7\n (S'V4'\n p15\n I0\n I1\n tp16\n Rp17\n (I3\n S'|'\n p18\n (g7\n (S'i1'\n p19\n I0\n I1\n tp20\n Rp21\n (I3\n S'|'\n p22\n NNNI-1\n I-1\n I0\n tp23\n b(I2\n I2\n tp24\n tp25\n NNI4\n I1\n I0\n tp26\n bI0\n tp27\n sg3\n (g7\n (S'V2'\n p28\n I0\n I1\n tp29\n Rp30\n (I3\n S'|'\n p31\n (g21\n I2\n tp32\n NNI2\n I1\n I0\n tp33\n bI4\n tp34\n sI6\n I1\n I0\n tp35\n bI00\n S'\\ x01\\ x01\\ x01\\ x01\\ x01\\ x02'\n p36\n tp37\n b."
47374723 a = np .array ([(1 , (1 , 2 ))], dtype = [('a' , 'i1' , (2 , 2 )), ('b' , 'i1' , 2 )])
0 commit comments