str.format() requires indexes on Python 2.6.

This commit is contained in:
Marcel Rodrigues
2013-10-03 08:51:22 -03:00
parent 9d0fcda63f
commit b1c6d073d9

View File

@@ -334,8 +334,8 @@ class TestGitHubIssues(base.PyMySQLTestCase):
conn = self.connections[0]
cur = conn.cursor()
for length in (200, 300):
columns = ', '.join('c{} integer'.format(i) for i in range(length))
sql = 'create table test_field_count ({})'.format(columns)
columns = ', '.join('c{0} integer'.format(i) for i in range(length))
sql = 'create table test_field_count ({0})'.format(columns)
try:
cur.execute(sql)
cur.execute('select * from test_field_count')