Merge lp:~frankban/launchpad/bug-985338-programming-error into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 15132 |
Proposed branch: | lp:~frankban/launchpad/bug-985338-programming-error |
Merge into: | lp:launchpad |
Diff against target: |
12 lines (+5/-0) 1 file modified
lib/lp/testing/tests/test_pgsql.py (+5/-0) |
To merge this branch: | bzr merge lp:~frankban/launchpad/bug-985338-programming-error |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+102815@code.launchpad.net |
Description of the change
= Summary =
lp.testing.
intermittently raises a ProgrammingError. This happens when the test is run
after test_sequences (in the same TestCase). The latter doesn't destroy the
database used for tests, and so the former generates an error attempting
to create an existing table.
== Proposed fix ==
Drop the database in test_sequences.
== Implementation details ==
See proposed fix.
== Tests ==
$ bin/test -vv -t lp.testing.
Running tests at level 1
Running lp.testing.
Set up lp.testing.
Running:
testOptimization (lp.testing.
test_sequences (lp.testing.
Ran 2 tests with 0 failures and 0 errors in 1.474 seconds.
Tearing down left over layers:
Tear down lp.testing.
$ bin/test -vv --shuffle -t lp.testing.
Running tests at level 1
Running lp.testing.
Set up lp.testing.
Running:
test_sequences (lp.testing.
testOptimization (lp.testing.
Ran 2 tests with 0 failures and 0 errors in 1.484 seconds.
Tearing down left over layers:
Tear down lp.testing.
Tests were shuffled using seed number 341718873136.
== Demo and Q/A ==
no-qa
== lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/