()
| 314 | |
| 315 | |
| 316 | def test_tuple_resolver_mixed(): |
| 317 | from _pydevd_bundle.pydevd_resolver import TupleResolver |
| 318 | |
| 319 | tuple_resolver = TupleResolver() |
| 320 | |
| 321 | class CustomTuple(tuple): |
| 322 | pass |
| 323 | |
| 324 | my_tuple = CustomTuple([1, 2]) |
| 325 | my_tuple.some_value = 10 |
| 326 | contents_debug_adapter_protocol = clear_contents_debug_adapter_protocol(tuple_resolver.get_contents_debug_adapter_protocol(my_tuple)) |
| 327 | len_entry = contents_debug_adapter_protocol.pop(-1) |
| 328 | check_len_entry(len_entry, (GENERATED_LEN_ATTR_NAME, 2)) |
| 329 | assert contents_debug_adapter_protocol == [ |
| 330 | ("some_value", 10, ".some_value"), |
| 331 | ("0", 1, "[0]"), |
| 332 | ("1", 2, "[1]"), |
| 333 | ] |
| 334 | |
| 335 | |
| 336 | def test_tuple_resolver_ctypes(): |
nothing calls this directly
no test coverage detected