~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/tests/test_pgsql.py

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-26 06:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14049.
  • Revision ID: jeroen.vermeulen@canonical.com-20110926063007-1fb5eelnidpnra9a
Fix lots of lint in recently-changed files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
            cur = con.cursor()
103
103
            cur.execute('CREATE TABLE foo (x int)')
104
104
            con.commit()
105
 
            ConnectionWrapper.committed = False # Leave the table
 
105
            # Leave the table.
 
106
            ConnectionWrapper.committed = False
106
107
        finally:
107
108
            fixture.tearDown()
108
109
 
177
178
        sequence_values = []
178
179
        # Insert a row into it and roll back the changes. Each time, we
179
180
        # should end up with the same sequence value
180
 
        for i in range(1,3):
 
181
        for i in range(1, 3):
181
182
            fixture.setUp()
182
183
            try:
183
184
                con = fixture.connect()