Merge lp:~openerp-community-testers/openobject-server/trunk-sequences-test-bug-1083724 into lp:openobject-server
Proposed by
Georges Racinet
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~openerp-community-testers/openobject-server/trunk-sequences-test-bug-1083724 | ||||
Merge into: | lp:openobject-server | ||||
Diff against target: |
33 lines (+15/-8) 1 file modified
openerp/tests/test_ir_sequence.py (+15/-8) |
||||
To merge this branch: | bzr merge lp:~openerp-community-testers/openobject-server/trunk-sequences-test-bug-1083724 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vo Minh Thu (community) | Needs Information | ||
Review via email: mp+136489@code.launchpad.net |
Description of the change
Checking the error code. This pattern of a posteriori checking of the exception arguments after using self.assertRaises as a context manager is actually inspired by python documentation (http://
Also now cursor closing occurs in a finally: statement to avoid blocking besides failing
To post a comment you must log in.
Unmerged revisions
- 4604. By Georges Racinet <email address hidden>
-
A wider try/finally in test draw_twice (no gap)
- 4603. By Georges Racinet <email address hidden>
-
Getting rid of tabs, plus one pyflakes error
- 4602. By Georges Racinet <email address hidden>
-
[FIX] Proper checking of pg error code for expected lock fail in test
Hi!
Indeed, the
with ... as raise_ctx:
seems nice.
But the diff seems messed up by tabs.
And I don't understand the try/finally. Don't you want to put all the code using the cursors in the try body?