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]
|
conn = self.connections[0]
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
for length in (200, 300):
|
for length in (200, 300):
|
||||||
columns = ', '.join('c{} integer'.format(i) for i in range(length))
|
columns = ', '.join('c{0} integer'.format(i) for i in range(length))
|
||||||
sql = 'create table test_field_count ({})'.format(columns)
|
sql = 'create table test_field_count ({0})'.format(columns)
|
||||||
try:
|
try:
|
||||||
cur.execute(sql)
|
cur.execute(sql)
|
||||||
cur.execute('select * from test_field_count')
|
cur.execute('select * from test_field_count')
|
||||||
|
|||||||
Reference in New Issue
Block a user