()
| 524 | |
| 525 | |
| 526 | def test_table_getitem(): |
| 527 | tab = T( |
| 528 | """ |
| 529 | a |
| 530 | 1 |
| 531 | 2 |
| 532 | """ |
| 533 | ) |
| 534 | |
| 535 | with _assert_error_trace( |
| 536 | ValueError, |
| 537 | match=re.escape( |
| 538 | "Table.__getitem__ argument has to be a ColumnReference to the same table or pw.this, or a string " |
| 539 | + "(or a list of those)." |
| 540 | ), |
| 541 | ): |
| 542 | tab[tab.copy().a] # cause |
| 543 | |
| 544 | |
| 545 | def test_from_columns(): |
nothing calls this directly
no test coverage detected