()
| 709 | |
| 710 | |
| 711 | def test_remove_errors_identity(): |
| 712 | t1 = T( |
| 713 | """ |
| 714 | a | b | c |
| 715 | 3 | 3 | 1 |
| 716 | 4 | 1 | 2 |
| 717 | 5 | 5 | 1 |
| 718 | 6 | 2 | 3 |
| 719 | """ |
| 720 | ) |
| 721 | |
| 722 | t2 = t1.select(x=pw.this.a // pw.this.b) |
| 723 | t3 = t1.select(y=pw.this.a // pw.this.c) |
| 724 | |
| 725 | t4 = t1.select(pw.this.a, x=t2.x, y=t3.y) |
| 726 | |
| 727 | res = t4.remove_errors() |
| 728 | |
| 729 | assert_table_equality_wo_index( |
| 730 | res, |
| 731 | T( |
| 732 | """ |
| 733 | a | x | y |
| 734 | 3 | 1 | 3 |
| 735 | 4 | 4 | 2 |
| 736 | 5 | 1 | 5 |
| 737 | 6 | 3 | 2 |
| 738 | """ |
| 739 | ), |
| 740 | terminate_on_error=False, |
| 741 | ) |
| 742 | |
| 743 | |
| 744 | def test_reindex_with_duplicate_key(): |
nothing calls this directly
no test coverage detected