str.format() requires indexes on Python 2.6.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user