Repository navigation
Commit baf0f01
authored
Remove stale xfail on schema-qualified INSERT parseutils test (#1625)
* Remove stale xfail on schema-qualified INSERT parseutils test
test_simple_insert_single_table_schema_qualified was marked xfail for an
old sqlparse that mislabeled schema-qualified INSERT statements. That is
long fixed: the test passes across the supported range (sqlparse 0.3.0
through 0.6.x), so the marker only produced an XPASS. Because xfail_strict
is not set, that XPASS was silent and the assertion never gated anything.
Drop the decorator so the test guards extract_tables again.
* Document the still-needed xfail on the multi-column sub-select test
dbaty asked whether the xfail on test_sub_select_multiple_col_name_completion
(added in 4e86201 in 2015, without explanation) is still needed. It is:
removing the marker makes the test fail on sqlparse 0.6.0. Parsing the
incomplete 'SELECT a, FROM abc' still treats the token before the trailing
comma ('a') as a table, so the Column suggestion carries table_refs for both
'a' and 'abc' instead of just 'abc'.
Keep the marker but give it a reason so the 2015 gap dbaty flagged is closed:
future readers see why the failure is expected instead of an undocumented
decorator.
---------
Co-authored-by: Paco Cartones <pacocartones@users.noreply.github.com>1 parent 101e523 commit baf0f01
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
454 | 459 | | |
455 | 460 | | |
456 | 461 | | |
| |||
0 commit comments