diff options
| author | JacekPliszka <Jacek.Pliszka@gmail.com> | 2015-02-12 01:37:46 +0100 |
|---|---|---|
| committer | JacekPliszka <Jacek.Pliszka@gmail.com> | 2015-02-12 01:37:46 +0100 |
| commit | 703aec1fb30dcf5c0ed14552e601e4487707435e (patch) | |
| tree | 8f5beb4e9c71c4e37513b800f118c8c67754804c /tests | |
| parent | 858b366d8fea37424f4f6b3b534190ac873b02c9 (diff) | |
| download | sqlparse-703aec1fb30dcf5c0ed14552e601e4487707435e.tar.gz | |
Fix of problem with multiline treated as stackable while /* /* */ is one comment, not two stacked
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_format.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_format.py b/tests/test_format.py index b789b17..a105b1c 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -61,6 +61,9 @@ class TestFormat(TestCaseBase): sql = 'select (/* sql starts here */ select 2)' res = sqlparse.format(sql, strip_comments=True) self.ndiffAssertEqual(res, 'select (select 2)') + sql = 'select (/* sql /* starts here */ select 2)' + res = sqlparse.format(sql, strip_comments=True) + self.ndiffAssertEqual(res, 'select (select 2)') def test_strip_ws(self): f = lambda sql: sqlparse.format(sql, strip_whitespace=True) |
