diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_regressions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_regressions.py b/tests/test_regressions.py index b55939a..9a8506f 100644 --- a/tests/test_regressions.py +++ b/tests/test_regressions.py @@ -312,3 +312,9 @@ def test_issue207_runaway_format(): " 2 as two,", " 3", " from dual) t0"]) + + +def token_next_doesnt_ignore_skip_cm(): + sql = '--comment\nselect 1' + tok = sqlparse.parse(sql)[0].token_next(-1, skip_cm=True)[1] + assert tok.value == 'select'
\ No newline at end of file |
