@@ -36,7 +36,7 @@ def setUp(self):
3636 # channel_indexes = get_fake_value('channel_indexes', np.ndarray, seed=0,
3737 # dim=1, dtype='i')
3838 # channel_names = get_fake_value('channel_names', np.ndarray, seed=1,
39- # dim=1, dtype=np.dtype('S '))
39+ # dim=1, dtype=np.dtype('U '))
4040 # name = get_fake_value('name', str, seed=3, obj=ChannelIndex)
4141 # description = get_fake_value('description', str, seed=4,
4242 # obj='ChannelIndex')
@@ -148,7 +148,7 @@ def test__channelindex__init_defaults(self):
148148 self .assertEqual (chx .name , None )
149149 self .assertEqual (chx .file_origin , None )
150150 self .assertEqual (chx .analogsignals , [])
151- assert_arrays_equal (chx .channel_names , np .array ([], dtype = 'S ' ))
151+ assert_arrays_equal (chx .channel_names , np .array ([], dtype = 'U ' ))
152152 assert_arrays_equal (chx .index , np .array ([1 ]))
153153
154154 def test_channelindex__init (self ):
@@ -158,7 +158,7 @@ def test_channelindex__init(self):
158158 self .assertEqual (chx .file_origin , 'temp.dat' )
159159 self .assertEqual (chx .name , None )
160160 self .assertEqual (chx .analogsignals , [])
161- assert_arrays_equal (chx .channel_names , np .array ([], dtype = 'S ' ))
161+ assert_arrays_equal (chx .channel_names , np .array ([], dtype = 'U ' ))
162162 assert_arrays_equal (chx .index , np .array ([1 ]))
163163
164164 def check_creation (self , chx ):
0 commit comments