Closed
Description
9 integration tests fail on Python 3.11:
Test project /Users/benwibking/lpython/integration_tests/_lpython-tmp-test-cpython
Start 1: array_01_decl
Start 2: array_02_decl
Start 3: array_03_decl
Start 4: variable_decl_01
Start 5: variable_decl_02
Start 6: variable_decl_03
Start 7: array_expr_01
Start 8: array_expr_02
1/304 Test #5: variable_decl_02 ................. Passed 0.03 sec
Start 9: array_expr_03
2/304 Test #6: variable_decl_03 ................. Passed 0.03 sec
Start 10: array_size_01
3/304 Test #1: array_01_decl .................... Passed 1.34 sec
Start 11: array_size_02
4/304 Test #3: array_03_decl .................... Passed 1.37 sec
Start 12: array_01
5/304 Test #7: array_expr_01 .................... Passed 1.37 sec
Start 13: array_02
6/304 Test #8: array_expr_02 .................... Passed 1.37 sec
Start 14: array_03
7/304 Test #10: array_size_01 .................... Passed 1.35 sec
Start 15: array_04
8/304 Test #2: array_02_decl .................... Passed 1.38 sec
Start 16: bindc_01
9/304 Test #4: variable_decl_01 ................. Passed 1.38 sec
Start 17: bindc_02
10/304 Test #9: array_expr_03 ....................***Failed 1.36 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/array_expr_03.py", line 5, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'numpy.ndarray'> for field a is not allowed: use default_factory
Start 18: bindc_07
11/304 Test #16: bindc_01 ......................... Passed 0.03 sec
Start 19: bindc_08
12/304 Test #17: bindc_02 ......................... Passed 0.40 sec
Start 20: bindc_09
13/304 Test #11: array_size_02 .................... Passed 0.45 sec
Start 21: bindc_09b
14/304 Test #18: bindc_07 ......................... Passed 0.45 sec
Start 22: bindc_10
15/304 Test #14: array_03 ......................... Passed 0.51 sec
Start 23: bindc_11
16/304 Test #19: bindc_08 ......................... Passed 0.71 sec
Start 24: exit_01
17/304 Test #24: exit_01 .......................... Passed 0.02 sec
Start 25: exit_02
18/304 Test #15: array_04 ......................... Passed 0.80 sec
Start 26: exit_03
19/304 Test #13: array_02 ......................... Passed 0.82 sec
Start 27: exit_04
20/304 Test #25: exit_02 .......................... Passed 0.04 sec
Start 28: exit_01b
21/304 Test #26: exit_03 .......................... Passed 0.02 sec
Start 29: exit_02b
22/304 Test #27: exit_04 .......................... Passed 0.03 sec
Start 30: exit_02c
23/304 Test #28: exit_01b ......................... Passed 0.03 sec
Start 31: print_01
24/304 Test #20: bindc_09 ......................... Passed 0.45 sec
Start 32: print_04
25/304 Test #29: exit_02b ......................... Passed 0.03 sec
Start 33: print_06
26/304 Test #23: bindc_11 ......................... Passed 0.35 sec
Start 34: print_05
27/304 Test #30: exit_02c ......................... Passed 0.02 sec
Start 35: print_float
28/304 Test #31: print_01 ......................... Passed 0.02 sec
Start 36: print_list_tuple_01
29/304 Test #22: bindc_10 ......................... Passed 0.42 sec
Start 37: print_list_tuple_02
30/304 Test #33: print_06 ......................... Passed 0.02 sec
Start 38: print_list_tuple_03
31/304 Test #34: print_05 ......................... Passed 0.02 sec
Start 39: const_01
32/304 Test #21: bindc_09b ........................ Passed 0.47 sec
Start 40: const_02
33/304 Test #32: print_04 ......................... Passed 0.03 sec
Start 41: const_03
34/304 Test #35: print_float ...................... Passed 0.03 sec
Start 42: const_04
35/304 Test #36: print_list_tuple_01 .............. Passed 0.03 sec
Start 43: expr_01
36/304 Test #37: print_list_tuple_02 .............. Passed 0.03 sec
Start 44: expr_02
37/304 Test #38: print_list_tuple_03 .............. Passed 0.03 sec
Start 45: expr_03
38/304 Test #39: const_01 ......................... Passed 0.03 sec
Start 46: expr_04
39/304 Test #40: const_02 ......................... Passed 0.03 sec
Start 47: expr_05
40/304 Test #44: expr_02 .......................... Passed 0.01 sec
Start 48: expr_06
41/304 Test #43: expr_01 .......................... Passed 0.07 sec
Start 49: expr_07
42/304 Test #46: expr_04 .......................... Passed 0.08 sec
Start 50: expr_09
43/304 Test #45: expr_03 .......................... Passed 0.10 sec
Start 51: expr_10
44/304 Test #47: expr_05 .......................... Passed 0.25 sec
Start 52: expr_11
45/304 Test #49: expr_07 .......................... Passed 0.19 sec
Start 53: expr_14
46/304 Test #50: expr_09 .......................... Passed 0.18 sec
Start 54: expr_15
47/304 Test #52: expr_11 .......................... Passed 0.04 sec
Start 55: expr_16
48/304 Test #51: expr_10 .......................... Passed 0.06 sec
Start 56: expr_17
49/304 Test #48: expr_06 .......................... Passed 0.29 sec
Start 57: expr_18
50/304 Test #53: expr_14 .......................... Passed 0.04 sec
Start 58: expr_19
51/304 Test #54: expr_15 .......................... Passed 0.04 sec
Start 59: expr_20
52/304 Test #56: expr_17 .......................... Passed 0.07 sec
Start 60: expr_21
53/304 Test #58: expr_19 .......................... Passed 0.09 sec
Start 61: expr_01u
54/304 Test #59: expr_20 .......................... Passed 0.09 sec
Start 62: expr_02u
55/304 Test #57: expr_18 .......................... Passed 0.10 sec
Start 63: expr_03u
56/304 Test #42: const_04 ......................... Passed 0.41 sec
Start 64: expr_04u
57/304 Test #41: const_03 ......................... Passed 0.43 sec
Start 65: loop_01
58/304 Test #12: array_01 ......................... Passed 1.33 sec
Start 66: loop_02
59/304 Test #60: expr_21 .......................... Passed 0.06 sec
Start 67: loop_03
60/304 Test #61: expr_01u ......................... Passed 0.05 sec
Start 68: loop_04
61/304 Test #62: expr_02u ......................... Passed 0.05 sec
Start 69: loop_05
62/304 Test #64: expr_04u ......................... Passed 0.04 sec
Start 70: loop_06
63/304 Test #66: loop_02 .......................... Passed 0.05 sec
Start 71: loop_07
64/304 Test #65: loop_01 .......................... Passed 0.07 sec
Start 72: if_01
65/304 Test #69: loop_05 .......................... Passed 0.05 sec
Start 73: if_02
66/304 Test #67: loop_03 .......................... Passed 0.11 sec
Start 74: if_03
67/304 Test #68: loop_04 .......................... Passed 0.11 sec
Start 75: print_02
68/304 Test #71: loop_07 .......................... Passed 0.07 sec
Start 76: test_types_01
69/304 Test #70: loop_06 .......................... Passed 0.09 sec
Start 77: test_types_02
70/304 Test #72: if_01 ............................ Passed 0.08 sec
Start 78: test_str_01
71/304 Test #74: if_03 ............................ Passed 0.03 sec
Start 79: test_str_02
72/304 Test #79: test_str_02 ...................... Passed 0.02 sec
Start 80: test_str_03
73/304 Test #75: print_02 ......................... Passed 0.05 sec
Start 81: test_str_04
74/304 Test #73: if_02 ............................ Passed 0.08 sec
Start 82: test_list_01
75/304 Test #77: test_types_02 .................... Passed 0.04 sec
Start 83: test_list_02
76/304 Test #76: test_types_01 .................... Passed 0.05 sec
Start 84: test_list_03
77/304 Test #78: test_str_01 ...................... Passed 0.03 sec
Start 85: test_list_04
78/304 Test #81: test_str_04 ...................... Passed 0.02 sec
Start 86: test_list_05
79/304 Test #80: test_str_03 ...................... Passed 0.03 sec
Start 87: test_list_06
80/304 Test #84: test_list_03 ..................... Passed 0.03 sec
Start 88: test_list_07
81/304 Test #55: expr_16 .......................... Passed 0.35 sec
Start 89: test_list_08
82/304 Test #82: test_list_01 ..................... Passed 0.04 sec
Start 90: test_list_09
83/304 Test #83: test_list_02 ..................... Passed 0.04 sec
Start 91: test_list_10
84/304 Test #63: expr_03u ......................... Passed 0.24 sec
Start 92: test_list_11
85/304 Test #85: test_list_04 ..................... Passed 0.04 sec
Start 93: test_list_section
86/304 Test #86: test_list_05 ..................... Passed 0.04 sec
Start 94: test_list_section2
87/304 Test #87: test_list_06 ..................... Passed 0.04 sec
Start 95: test_list_count
88/304 Test #90: test_list_09 ..................... Passed 0.03 sec
Start 96: test_list_index
89/304 Test #88: test_list_07 ..................... Passed 0.04 sec
Start 97: test_list_index2
90/304 Test #91: test_list_10 ..................... Passed 0.03 sec
Start 98: test_list_repeat
91/304 Test #89: test_list_08 ..................... Passed 0.03 sec
Start 99: test_list_repeat2
92/304 Test #92: test_list_11 ..................... Passed 0.03 sec
Start 100: test_list_reverse
93/304 Test #93: test_list_section ................ Passed 0.03 sec
Start 101: test_list_pop
94/304 Test #94: test_list_section2 ............... Passed 0.03 sec
Start 102: test_list_pop2
95/304 Test #95: test_list_count .................. Passed 0.03 sec
Start 103: test_list_pop3
96/304 Test #96: test_list_index .................. Passed 0.03 sec
Start 104: test_list_compare
97/304 Test #97: test_list_index2 ................. Passed 0.03 sec
Start 105: test_list_concat
98/304 Test #98: test_list_repeat ................. Passed 0.03 sec
Start 106: test_list_reserve
99/304 Test #99: test_list_repeat2 ................ Passed 0.03 sec
Start 107: test_tuple_01
100/304 Test #100: test_list_reverse ................ Passed 0.03 sec
Start 108: test_tuple_02
101/304 Test #101: test_list_pop .................... Passed 0.03 sec
Start 109: test_tuple_03
102/304 Test #102: test_list_pop2 ................... Passed 0.03 sec
Start 110: test_tuple_04
103/304 Test #103: test_list_pop3 ................... Passed 0.03 sec
Start 111: test_tuple_concat
104/304 Test #104: test_list_compare ................ Passed 0.03 sec
Start 112: test_tuple_nested
105/304 Test #105: test_list_concat ................. Passed 0.03 sec
Start 113: test_dict_01
106/304 Test #106: test_list_reserve ................ Passed 0.03 sec
Start 114: test_dict_02
107/304 Test #107: test_tuple_01 .................... Passed 0.03 sec
Start 115: test_dict_03
108/304 Test #108: test_tuple_02 .................... Passed 0.03 sec
Start 116: test_dict_04
109/304 Test #109: test_tuple_03 .................... Passed 0.03 sec
Start 117: test_dict_05
110/304 Test #110: test_tuple_04 .................... Passed 0.03 sec
Start 118: test_dict_06
111/304 Test #112: test_tuple_nested ................ Passed 0.03 sec
Start 119: test_dict_07
112/304 Test #111: test_tuple_concat ................ Passed 0.03 sec
Start 120: test_dict_08
113/304 Test #113: test_dict_01 ..................... Passed 0.03 sec
Start 121: test_dict_09
114/304 Test #114: test_dict_02 ..................... Passed 0.03 sec
Start 122: test_dict_10
115/304 Test #116: test_dict_04 ..................... Passed 0.03 sec
Start 123: test_dict_11
116/304 Test #117: test_dict_05 ..................... Passed 0.03 sec
Start 124: test_dict_12
117/304 Test #118: test_dict_06 ..................... Passed 0.03 sec
Start 125: test_dict_13
118/304 Test #120: test_dict_08 ..................... Passed 0.03 sec
Start 126: test_dict_bool
119/304 Test #119: test_dict_07 ..................... Passed 0.03 sec
Start 127: test_dict_increment
120/304 Test #121: test_dict_09 ..................... Passed 0.03 sec
Start 128: test_dict_keys_values
121/304 Test #122: test_dict_10 ..................... Passed 0.03 sec
Start 129: test_set_len
122/304 Test #123: test_dict_11 ..................... Passed 0.02 sec
Start 130: test_set_add
123/304 Test #124: test_dict_12 ..................... Passed 0.03 sec
Start 131: test_set_remove
124/304 Test #125: test_dict_13 ..................... Passed 0.03 sec
Start 132: test_for_loop
125/304 Test #127: test_dict_increment .............. Passed 0.03 sec
Start 133: modules_01
126/304 Test #126: test_dict_bool ................... Passed 0.03 sec
Start 134: modules_02
127/304 Test #129: test_set_len ..................... Passed 0.03 sec
Start 135: test_import_01
128/304 Test #128: test_dict_keys_values ............ Passed 0.03 sec
Start 136: test_import_02
129/304 Test #130: test_set_add ..................... Passed 0.03 sec
Start 137: test_import_03
130/304 Test #131: test_set_remove .................. Passed 0.03 sec
Start 138: test_import_04
131/304 Test #132: test_for_loop .................... Passed 0.03 sec
Start 139: test_import_05
132/304 Test #135: test_import_01 ................... Passed 0.01 sec
Start 140: test_import_06
133/304 Test #133: modules_01 ....................... Passed 0.03 sec
Start 141: test_import_07
134/304 Test #134: modules_02 ....................... Passed 0.03 sec
Start 142: test_math
135/304 Test #137: test_import_03 ................... Passed 0.03 sec
Start 143: test_numpy_01
136/304 Test #136: test_import_02 ................... Passed 0.03 sec
Start 144: test_numpy_02
137/304 Test #138: test_import_04 ................... Passed 0.03 sec
Start 145: test_numpy_03
138/304 Test #140: test_import_06 ................... Passed 0.03 sec
Start 146: test_numpy_04
139/304 Test #139: test_import_05 ................... Passed 0.03 sec
Start 147: elemental_01
140/304 Test #141: test_import_07 ................... Passed 0.03 sec
Start 148: elemental_02
141/304 Test #142: test_math ........................ Passed 0.03 sec
Start 149: elemental_03
142/304 Test #144: test_numpy_02 .................... Passed 0.25 sec
Start 150: elemental_04
143/304 Test #143: test_numpy_01 .................... Passed 0.29 sec
Start 151: elemental_05
144/304 Test #145: test_numpy_03 .................... Passed 0.40 sec
Start 152: elemental_06
145/304 Test #146: test_numpy_04 .................... Passed 0.60 sec
Start 153: elemental_07
146/304 Test #149: elemental_03 ..................... Passed 0.67 sec
Start 154: elemental_08
147/304 Test #150: elemental_04 ..................... Passed 0.48 sec
Start 155: elemental_09
148/304 Test #148: elemental_02 ..................... Passed 0.87 sec
Start 156: elemental_10
149/304 Test #151: elemental_05 ..................... Passed 0.71 sec
Start 157: elemental_11
150/304 Test #152: elemental_06 ..................... Passed 0.66 sec
Start 158: elemental_12
151/304 Test #153: elemental_07 ..................... Passed 0.59 sec
Start 159: test_random
152/304 Test #159: test_random ...................... Passed 0.04 sec
Start 160: test_os
153/304 Test #154: elemental_08 ..................... Passed 0.55 sec
Start 161: test_builtin
154/304 Test #160: test_os .......................... Passed 0.03 sec
Start 162: test_builtin_abs
155/304 Test #161: test_builtin ..................... Passed 0.03 sec
Start 163: test_builtin_bool
156/304 Test #162: test_builtin_abs ................. Passed 0.03 sec
Start 164: test_builtin_pow
157/304 Test #163: test_builtin_bool ................ Passed 0.04 sec
Start 165: test_builtin_int
158/304 Test #165: test_builtin_int ................. Passed 0.02 sec
Start 166: test_builtin_len
159/304 Test #164: test_builtin_pow ................. Passed 0.03 sec
Start 167: test_builtin_str
160/304 Test #156: elemental_10 ..................... Passed 0.47 sec
Start 168: test_builtin_oct
161/304 Test #167: test_builtin_str ................. Passed 0.03 sec
Start 169: test_builtin_hex
162/304 Test #166: test_builtin_len ................. Passed 0.03 sec
Start 170: test_builtin_bin
163/304 Test #168: test_builtin_oct ................. Passed 0.03 sec
Start 171: test_builtin_float
164/304 Test #169: test_builtin_hex ................. Passed 0.03 sec
Start 172: test_builtin_str_02
165/304 Test #170: test_builtin_bin ................. Passed 0.03 sec
Start 173: test_builtin_round
166/304 Test #172: test_builtin_str_02 .............. Passed 0.03 sec
Start 174: test_builtin_divmod
167/304 Test #173: test_builtin_round ............... Passed 0.03 sec
Start 175: test_builtin_sum
168/304 Test #171: test_builtin_float ............... Passed 0.04 sec
Start 176: test_math1
169/304 Test #157: elemental_11 ..................... Passed 0.44 sec
Start 177: test_math_02
170/304 Test #175: test_builtin_sum ................. Passed 0.03 sec
Start 178: test_pass_compare
171/304 Test #174: test_builtin_divmod .............. Passed 0.03 sec
Start 179: test_c_interop_01
172/304 Test #177: test_math_02 ..................... Passed 0.03 sec
Start 180: test_c_interop_02
173/304 Test #158: elemental_12 ..................... Passed 0.40 sec
Start 181: test_c_interop_03
174/304 Test #176: test_math1 ....................... Passed 0.04 sec
Start 182: test_c_interop_04
175/304 Test #178: test_pass_compare ................ Passed 0.03 sec
Start 183: bindpy_01
176/304 Test #183: bindpy_01 ........................ Passed 0.06 sec
Start 184: bindpy_02
177/304 Test #147: elemental_01 ..................... Passed 1.74 sec
Start 185: bindpy_03
178/304 Test #179: test_c_interop_01 ................ Passed 0.34 sec
Start 186: bindpy_04
179/304 Test #155: elemental_09 ..................... Passed 1.14 sec
Start 187: test_generics_01
180/304 Test #187: test_generics_01 ................. Passed 0.10 sec
Start 188: test_cmath
181/304 Test #182: test_c_interop_04 ................ Passed 0.53 sec
Start 189: test_complex_01
182/304 Test #188: test_cmath ....................... Passed 0.04 sec
Start 190: test_complex_02
183/304 Test #180: test_c_interop_02 ................ Passed 0.55 sec
Start 191: test_max_min
184/304 Test #189: test_complex_01 .................. Passed 0.03 sec
Start 192: test_global
185/304 Test #184: bindpy_02 ........................ Passed 0.50 sec
Start 193: test_global_decl
186/304 Test #192: test_global ...................... Passed 0.03 sec
Start 194: test_ifexp_01
187/304 Test #191: test_max_min ..................... Passed 0.06 sec
Start 195: test_ifexp_02
188/304 Test #190: test_complex_02 .................. Passed 0.08 sec
Start 196: test_unary_op_01
189/304 Test #194: test_ifexp_01 .................... Passed 0.07 sec
Start 197: test_unary_op_02
190/304 Test #195: test_ifexp_02 .................... Passed 0.07 sec
Start 198: test_unary_op_03
191/304 Test #197: test_unary_op_02 ................. Passed 0.04 sec
Start 199: test_unary_op_04
192/304 Test #196: test_unary_op_01 ................. Passed 0.07 sec
Start 200: test_unary_op_05
193/304 Test #181: test_c_interop_03 ................ Passed 0.73 sec
Start 201: test_unary_op_06
194/304 Test #199: test_unary_op_04 ................. Passed 0.03 sec
Start 202: test_unsigned_01
195/304 Test #186: bindpy_04 ........................ Passed 0.40 sec
Start 203: test_unsigned_02
196/304 Test #198: test_unary_op_03 ................. Passed 0.05 sec
Start 204: test_unsigned_03
197/304 Test #200: test_unary_op_05 ................. Passed 0.04 sec
Start 205: test_bool_binop
198/304 Test #201: test_unary_op_06 ................. Passed 0.04 sec
Start 206: test_issue_518
199/304 Test #203: test_unsigned_02 ................. Passed 0.03 sec
Start 207: structs_01
200/304 Test #204: test_unsigned_03 ................. Passed 0.04 sec
Start 208: structs_02
201/304 Test #205: test_bool_binop .................. Passed 0.04 sec
Start 209: structs_02b
202/304 Test #202: test_unsigned_01 ................. Passed 0.06 sec
Start 210: structs_04
203/304 Test #207: structs_01 ....................... Passed 0.03 sec
Start 211: structs_05
204/304 Test #206: test_issue_518 ................... Passed 0.04 sec
Start 212: structs_06
205/304 Test #212: structs_06 ....................... Passed 0.08 sec
Start 213: structs_08
206/304 Test #210: structs_04 .......................***Failed 0.11 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/structs_04.py", line 9, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class '__main__.A'> for field a is not allowed: use default_factory
Start 214: structs_09
207/304 Test #185: bindpy_03 ........................ Passed 0.69 sec
Start 215: structs_10
208/304 Test #214: structs_09 .......................***Failed 0.08 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/structs_09.py", line 7, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class '__main__.C'> for field bc is not allowed: use default_factory
Start 216: structs_11
209/304 Test #213: structs_08 ....................... Passed 0.19 sec
Start 217: structs_12
210/304 Test #216: structs_11 ....................... Passed 0.10 sec
Start 218: structs_14
211/304 Test #211: structs_05 ....................... Passed 0.33 sec
Start 219: structs_15
212/304 Test #217: structs_12 ....................... Passed 0.05 sec
Start 220: structs_16
213/304 Test #193: test_global_decl ................. Passed 0.60 sec
Start 221: structs_17
214/304 Test #220: structs_16 ....................... Passed 0.04 sec
Start 222: structs_18
215/304 Test #209: structs_02b ...................... Passed 0.47 sec
Start 223: structs_19
216/304 Test #221: structs_17 .......................***Failed 0.07 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/structs_17.py", line 3, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class '__main__.B.C'> for field bc is not allowed: use default_factory
Start 224: structs_20
217/304 Test #208: structs_02 ....................... Passed 0.74 sec
Start 225: structs_21
218/304 Test #218: structs_14 ....................... Passed 0.45 sec
Start 226: structs_22
219/304 Test #215: structs_10 .......................***Failed 0.64 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/structs_10.py", line 4, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'numpy.ndarray'> for field mat is not allowed: use default_factory
Start 227: structs_23
220/304 Test #227: structs_23 ....................... Passed 0.08 sec
Start 228: structs_24
221/304 Test #219: structs_15 ....................... Passed 0.57 sec
Start 229: structs_25
222/304 Test #223: structs_19 ....................... Passed 0.62 sec
Start 230: structs_26
223/304 Test #224: structs_20 ....................... Passed 0.62 sec
Start 231: structs_27
224/304 Test #222: structs_18 ....................... Passed 0.69 sec
Start 232: structs_28
225/304 Test #230: structs_26 ....................... Passed 0.03 sec
Start 233: structs_29
226/304 Test #231: structs_27 ....................... Passed 0.03 sec
Start 234: structs_30
227/304 Test #232: structs_28 ....................... Passed 0.04 sec
Start 235: structs_31
228/304 Test #233: structs_29 ....................... Passed 0.04 sec
Start 236: structs_32
229/304 Test #229: structs_25 ....................... Passed 0.23 sec
Start 237: structs_33
230/304 Test #234: structs_30 ....................... Passed 0.03 sec
Start 238: structs_34
231/304 Test #235: structs_31 .......................***Failed 0.03 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/structs_31.py", line 9, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'lpython.packed.<locals>.PackedDataClassLocal'> for field b is not allowed: use default_factory
Start 239: sizeof_02
232/304 Test #236: structs_32 .......................***Failed 0.03 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/structs_32.py", line 11, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'lpython.packed.<locals>.PackedDataClassLocal'> for field b is not allowed: use default_factory
Start 240: enum_01
233/304 Test #225: structs_21 ....................... Passed 0.45 sec
Start 241: enum_02
234/304 Test #237: structs_33 .......................***Failed 0.04 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/structs_33.py", line 12, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'lpython.packed.<locals>.PackedDataClassLocal'> for field inner_s is not allowed: use default_factory
Start 242: enum_03
235/304 Test #228: structs_24 ....................... Passed 0.27 sec
Start 243: enum_04
236/304 Test #238: structs_34 ....................... Passed 0.04 sec
Start 244: enum_06
237/304 Test #226: structs_22 ....................... Passed 0.43 sec
Start 245: enum_07
238/304 Test #240: enum_01 .......................... Passed 0.03 sec
Start 246: union_01
239/304 Test #239: sizeof_02 ........................ Passed 0.04 sec
Start 247: union_02
240/304 Test #241: enum_02 .......................... Passed 0.03 sec
Start 248: union_03
241/304 Test #242: enum_03 .......................... Passed 0.03 sec
Start 249: union_04
242/304 Test #243: enum_04 .......................... Passed 0.03 sec
Start 250: test_str_to_int
243/304 Test #245: enum_07 .......................... Passed 0.03 sec
Start 251: test_platform
244/304 Test #246: union_01 ......................... Passed 0.03 sec
Start 252: test_vars_01
245/304 Test #247: union_02 ......................... Passed 0.05 sec
Start 253: test_version
246/304 Test #250: test_str_to_int .................. Passed 0.04 sec
Start 254: logical_binop1
247/304 Test #249: union_04 ......................... Passed 0.05 sec
Start 255: vec_01
248/304 Test #248: union_03 ......................... Passed 0.07 sec
Start 256: test_str_comparison
249/304 Test #251: test_platform .................... Passed 0.06 sec
Start 257: test_bit_length
250/304 Test #252: test_vars_01 ..................... Passed 0.04 sec
Start 258: str_to_list_cast
251/304 Test #253: test_version ..................... Passed 0.02 sec
Start 259: cast_01
252/304 Test #256: test_str_comparison .............. Passed 0.02 sec
Start 260: cast_02
253/304 Test #257: test_bit_length .................. Passed 0.04 sec
Start 261: test_sys_01
254/304 Test #258: str_to_list_cast ................. Passed 0.09 sec
Start 262: intent_01
255/304 Test #254: logical_binop1 ................... Passed 0.12 sec
Start 263: test_package_01
256/304 Test #261: test_sys_01 ...................... Passed 0.06 sec
Start 264: test_pkg_lpdraw
257/304 Test #260: cast_02 .......................... Passed 0.10 sec
Start 265: test_pkg_lnn_01
258/304 Test #263: test_package_01 .................. Passed 0.05 sec
Start 266: test_pkg_lnn_02
259/304 Test #262: intent_01 ........................ Passed 0.09 sec
Start 267: test_pkg_lpconvexhull
260/304 Test #244: enum_06 .......................... Passed 0.49 sec
Start 268: generics_01
261/304 Test #268: generics_01 ...................... Passed 0.03 sec
Start 269: generics_02
262/304 Test #269: generics_02 ...................... Passed 0.05 sec
Start 270: generics_array_01
263/304 Test #259: cast_01 ..........................***Failed 0.50 sec
Traceback (most recent call last):
File "/Users/benwibking/lpython/integration_tests/cast_01.py", line 4, in <module>
@dataclass
^^^^^^^^^
File "/Users/benwibking/lpython/src/runtime/lpython/lpython.py", line 56, in dataclass
return py_dataclass(arg)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'numpy.ndarray'> for field a is not allowed: use default_factory
Start 271: generics_array_02
264/304 Test #115: test_dict_03 ..................... Passed 4.15 sec
Start 272: generics_array_03
265/304 Test #264: test_pkg_lpdraw .................. Passed 0.48 sec
Start 273: generics_list_01
266/304 Test #255: vec_01 ........................... Passed 0.68 sec
Start 274: test_statistics
267/304 Test #273: generics_list_01 ................. Passed 0.08 sec
Start 275: test_str_attributes
268/304 Test #275: test_str_attributes .............. Passed 0.02 sec
Start 276: kwargs_01
269/304 Test #274: test_statistics .................. Passed 0.04 sec
Start 277: func_inline_02
270/304 Test #276: kwargs_01 ........................ Passed 0.05 sec
Start 278: func_static_01
271/304 Test #277: func_inline_02 ................... Passed 0.07 sec
Start 279: func_static_02
272/304 Test #278: func_static_01 ................... Passed 0.10 sec
Start 280: func_dep_03
273/304 Test #279: func_static_02 ................... Passed 0.08 sec
Start 281: func_dep_04
274/304 Test #271: generics_array_02 ................ Passed 0.39 sec
Start 282: func_internal_def_01
275/304 Test #270: generics_array_01 ................ Passed 0.44 sec
Start 283: float_01
276/304 Test #272: generics_array_03 ................ Passed 0.41 sec
Start 284: recursive_01
277/304 Test #280: func_dep_03 ...................... Passed 0.07 sec
Start 285: comp_01
278/304 Test #281: func_dep_04 ...................... Passed 0.07 sec
Start 286: bit_operations_i32
279/304 Test #267: test_pkg_lpconvexhull ............ Passed 0.74 sec
Start 287: bit_operations_i64
280/304 Test #282: func_internal_def_01 ............. Passed 0.04 sec
Start 288: test_argv_01
281/304 Test #265: test_pkg_lnn_01 .................. Passed 0.82 sec
Start 289: global_syms_01
282/304 Test #283: float_01 ......................... Passed 0.03 sec
Start 290: global_syms_02
283/304 Test #284: recursive_01 ..................... Passed 0.03 sec
Start 291: global_syms_03_b
284/304 Test #286: bit_operations_i32 ............... Passed 0.03 sec
Start 292: global_syms_03_c
285/304 Test #287: bit_operations_i64 ............... Passed 0.03 sec
Start 293: global_syms_04
286/304 Test #285: comp_01 .......................... Passed 0.03 sec
Start 294: global_syms_05
287/304 Test #288: test_argv_01 ..................... Passed 0.03 sec
Start 295: global_syms_06
288/304 Test #289: global_syms_01 ................... Passed 0.03 sec
Start 296: callback_01
289/304 Test #291: global_syms_03_b ................. Passed 0.03 sec
Start 297: callback_02
290/304 Test #290: global_syms_02 ................... Passed 0.03 sec
Start 298: callback_03
291/304 Test #292: global_syms_03_c ................. Passed 0.03 sec
Start 299: callback_04
292/304 Test #293: global_syms_04 ................... Passed 0.03 sec
Start 300: intrinsics_01
293/304 Test #294: global_syms_05 ................... Passed 0.03 sec
Start 301: lpython_decorator_01
294/304 Test #295: global_syms_06 ................... Passed 0.03 sec
Start 302: lpython_decorator_02
295/304 Test #296: callback_01 ...................... Passed 0.04 sec
Start 303: import_order_01
296/304 Test #297: callback_02 ...................... Passed 0.07 sec
Start 304: lpython_emulation_01
297/304 Test #298: callback_03 ...................... Passed 0.11 sec
298/304 Test #299: callback_04 ...................... Passed 0.11 sec
299/304 Test #300: intrinsics_01 .................... Passed 0.12 sec
300/304 Test #303: import_order_01 .................. Passed 0.16 sec
301/304 Test #304: lpython_emulation_01 ............. Passed 0.30 sec
302/304 Test #266: test_pkg_lnn_02 .................. Passed 1.35 sec
303/304 Test #301: lpython_decorator_01 ............. Passed 1.46 sec
304/304 Test #302: lpython_decorator_02 ............. Passed 1.95 sec
97% tests passed, 9 tests failed out of 304
Label Time Summary:
c = 51.42 sec*proc (257 tests)
c_py = 1.65 sec*proc (4 tests)
cpython = 65.43 sec*proc (304 tests)
llvm = 58.29 sec*proc (292 tests)
wasm = 4.03 sec*proc (35 tests)
wasm_x64 = 0.90 sec*proc (22 tests)
wasm_x86 = 0.43 sec*proc (11 tests)
Total Test time (real) = 9.60 sec
The following tests FAILED:
9 - array_expr_03 (Failed)
210 - structs_04 (Failed)
214 - structs_09 (Failed)
215 - structs_10 (Failed)
221 - structs_17 (Failed)
235 - structs_31 (Failed)
236 - structs_32 (Failed)
237 - structs_33 (Failed)
259 - cast_01 (Failed)
Errors while running CTest
Command failed: ctest -j8 --output-on-failure
Metadata
Metadata
Assignees
Labels
No labels