Set types are converted to lists if retain_collection_types=False.
(self, C, set_type)
| 442 | |
| 443 | @given(set_type=st.sampled_from((set, frozenset))) |
| 444 | def test_sets_no_retain(self, C, set_type): |
| 445 | """ |
| 446 | Set types are converted to lists if retain_collection_types=False. |
| 447 | """ |
| 448 | d = astuple( |
| 449 | C(1, set_type((1, 2, 3))), |
| 450 | retain_collection_types=False, |
| 451 | recurse=True, |
| 452 | ) |
| 453 | |
| 454 | assert (1, [1, 2, 3]) == d |
| 455 | |
| 456 | def test_named_tuple_retain_type(self): |
| 457 | """ |