diff options
| author | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-02-03 15:22:05 +0100 |
|---|---|---|
| committer | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-02-03 15:22:05 +0100 |
| commit | 4e8ae03682d346b2a57dc9d4760d838ec9674804 (patch) | |
| tree | 056c49cb7c8c6ca14a299748a3692dc6ee488e21 /tests | |
| parent | c1b05d502b715558076e0d54008b846e27299d41 (diff) | |
| download | sqlparse-4e8ae03682d346b2a57dc9d4760d838ec9674804.tar.gz | |
Changed get_identifiers() to be a generator
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_grouping.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_grouping.py b/tests/test_grouping.py index 5f060b9..8148d2f 100644 --- a/tests/test_grouping.py +++ b/tests/test_grouping.py @@ -181,7 +181,7 @@ class TestGrouping(TestCaseBase): self.assert_(isinstance(p.tokens[0], sql.Function)) p = sqlparse.parse('foo(null, bar)')[0] self.assert_(isinstance(p.tokens[0], sql.Function)) - self.assertEqual(len(p.tokens[0].get_parameters()), 2) + self.assertEqual(len(list(p.tokens[0].get_parameters())), 2) class TestStatement(TestCaseBase): |
