File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -1027,24 +1027,11 @@ def test_object_arrays_danger(self):
1027
1027
z [:] = 42
1028
1028
1029
1029
# do something else dangerous
1030
- labels = [
1031
- '¡Hola mundo!' ,
1032
- 'Hej Världen!' ,
1033
- 'Servus Woid!' ,
1034
- 'Hei maailma!' ,
1035
- 'Xin chào thế giới' ,
1036
- 'Njatjeta Botë!' ,
1037
- 'Γεια σου κόσμε!' ,
1038
- 'こんにちは世界' ,
1039
- '世界,你好!' ,
1040
- 'Helló, világ!' ,
1041
- 'Zdravo svete!' ,
1042
- 'เฮลโลเวิลด์'
1043
- ]
1044
- data = labels * 10
1030
+ data = greetings * 10
1045
1031
for compressor in Zlib (1 ), Blosc ():
1046
1032
z = self .create_array (shape = len (data ), chunks = 30 , dtype = object ,
1047
- object_codec = Categorize (labels , dtype = object ),
1033
+ object_codec = Categorize (greetings ,
1034
+ dtype = object ),
1048
1035
compressor = compressor )
1049
1036
z [:] = data
1050
1037
v = z .view (filters = [])
You can’t perform that action at this time.
0 commit comments