@@ -781,16 +781,16 @@ def test_numpy_array_uint(self):
781781 result = {'data' : value }
782782 self .assertDictEqual (result , self .base .annotations )
783783
784- def test_numpy_array_int0 (self ):
785- '''test to make sure int0 type numpy arrays are accepted'''
786- value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np .int0 )
784+ def test_numpy_array_intp (self ):
785+ '''test to make sure intp type numpy arrays are accepted'''
786+ value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np .intp )
787787 self .base .annotate (data = value )
788788 result = {'data' : value }
789789 self .assertDictEqual (result , self .base .annotations )
790790
791- def test_numpy_array_uint0 (self ):
792- '''test to make sure uint0 type numpy arrays are accepted'''
793- value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np .uint0 )
791+ def test_numpy_array_uintp (self ):
792+ '''test to make sure uintp type numpy arrays are accepted'''
793+ value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np .uintp )
794794 self .base .annotate (data = value )
795795 result = {'data' : value }
796796 self .assertDictEqual (result , self .base .annotations )
@@ -940,7 +940,7 @@ def test_numpy_array_str(self):
940940
941941 def test_numpy_array_string0 (self ):
942942 '''test to make sure string0 type numpy arrays are accepted'''
943- value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np .str0 )
943+ value = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = np .str_ )
944944 self .base .annotate (data = value )
945945 result = {'data' : value }
946946 self .assertDictEqual (result , self .base .annotations )
@@ -969,16 +969,16 @@ def test_numpy_scalar_uint(self):
969969 result = {'data' : value }
970970 self .assertDictEqual (result , self .base .annotations )
971971
972- def test_numpy_scalar_int0 (self ):
973- '''test to make sure int0 type numpy scalars are accepted'''
974- value = np .array (99 , dtype = np .int0 )
972+ def test_numpy_scalar_intp (self ):
973+ '''test to make sure intp type numpy scalars are accepted'''
974+ value = np .array (99 , dtype = np .intp )
975975 self .base .annotate (data = value )
976976 result = {'data' : value }
977977 self .assertDictEqual (result , self .base .annotations )
978978
979- def test_numpy_scalar_uint0 (self ):
980- '''test to make sure uint0 type numpy scalars are accepted'''
981- value = np .array (99 , dtype = np .uint0 )
979+ def test_numpy_scalar_uintp (self ):
980+ '''test to make sure uintp type numpy scalars are accepted'''
981+ value = np .array (99 , dtype = np .uintp )
982982 self .base .annotate (data = value )
983983 result = {'data' : value }
984984 self .assertDictEqual (result , self .base .annotations )
@@ -1127,7 +1127,7 @@ def test_numpy_array_str(self):
11271127
11281128 def test_numpy_scalar_string0 (self ):
11291129 '''test to make sure string0 type numpy scalars are rejected'''
1130- value = np .array (99 , dtype = np .str0 )
1130+ value = np .array (99 , dtype = np .str_ )
11311131 self .base .annotate (data = value )
11321132 result = {'data' : value }
11331133 self .assertDictEqual (result , self .base .annotations )
0 commit comments