Opened 15 years ago

Closed 15 years ago

#10676 closed (fixed)

new test methodology (db rollback rather than reset) causes error when parameters passed to transaction methods

Reported by: Sean Legassick Owned by: Karen Tracey
Component: Testing framework Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Basically the assignment of 'nop' to the various transaction-management methods has a problem in the case of 'enter_transaction_management' which can accept a 'managed' argument whereas 'nop' only accepts 'x'. The easy solution is to make 'nop' accept any args/kwargs (see attached patch).

Attachments (1)

10676-testcase-nop-accepts-any-args.diff (417 bytes ) - added by Sean Legassick 15 years ago.

Download all attachments as: .zip

Change History (3)

by Sean Legassick, 15 years ago

comment:1 by Karen Tracey, 15 years ago

Owner: changed from nobody to Karen Tracey
Status: newassigned
Triage Stage: UnreviewedAccepted
Version: 1.0SVN

Right. Thanks for pointing that out. I'll fix it.

comment:2 by Karen Tracey, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [10248]) Fixed #10676 -- Make transaction nop routine used during testing accept any args/kwargs it might be called with. Thanks seanl.

Note: See TracTickets for help on using tickets.
Back to Top