diff options
| author | Darik Gamble <darik.gamble@gmail.com> | 2016-06-20 09:56:42 -0400 |
|---|---|---|
| committer | Darik Gamble <darik.gamble@gmail.com> | 2016-06-20 09:56:42 -0400 |
| commit | 66ae504c4bf8cc1f005c8822623d2b3c3d3e4aa3 (patch) | |
| tree | 6c6a15e28d6d77b7ddb3559bcde43ac431360b8b /tests | |
| parent | b3700f44ff6945d1ace9d5d809dd272c9acd268e (diff) | |
| download | sqlparse-66ae504c4bf8cc1f005c8822623d2b3c3d3e4aa3.tar.gz | |
token_next shouldn't ignore skip_cm
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 |
