Bugzilla – Attachment 42057 Details for
Bug 14197
Warning raised by TestBuilder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14197: Remove the warning on destroying TestBuilder objects
Bug-14197-Remove-the-warning-on-destroying-TestBui.patch (text/plain), 998 bytes, created by
Marcel de Rooy
on 2015-08-28 10:16:28 UTC
(
hide
)
Description:
Bug 14197: Remove the warning on destroying TestBuilder objects
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2015-08-28 10:16:28 UTC
Size:
998 bytes
patch
obsolete
>From f194ae8a13bcc9a4cdcb982d01799631fcde08ca Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@koha-community.org> >Date: Wed, 13 May 2015 17:58:45 +0200 >Subject: [PATCH] Bug 14197: Remove the warning on destroying TestBuilder > objects >Content-Type: text/plain; charset=utf-8 > >This module will be called by db_dependent tests, which already create a >transaction. >TestBuilder creates a new one (which is certainly useless) and the >rollback does not do anything. > >To see the warning see patches on bug 14045. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/lib/TestBuilder.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index 5d3157a..72b087d 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -357,7 +357,9 @@ sub _gen_blob { > > sub DESTROY { > my $self = shift; >- $self->schema->txn_rollback(); >+ eval { >+ $self->schema->txn_rollback(); >+ }; > } > > >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14197
:
39146
|
40859
|
42055
|
42056
|
42057
|
42058
|
42059
|
42545
|
42546