[Templates] Developer Release 2.06e
Leon Brocard
acme@astray.com
Wed, 13 Mar 2002 10:16:06 +0000
--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Andy Wardley sent the following bits through the ether:
> This will become 2.07 in the next few days. Any new patches, other
> than serious bugfixes, will have to wait for a 2.07a developer release.
Looks ok in 5.6. Something odd under bleadperl though. A patch to
context.t is attached, but the error from plugins.t shows the
problem. I have no idea why this happens, unfortunately :-( :
MATCH FAILED
input: [[% TRY -%]\n[% USE Foo(8) -%]\n[% Foo.output %]\n[% CATCH -%]\nERROR: [% error.info %]\n[% END %]\n]
expect: [ERROR: Foo: plugin not found]
output: [ERROR: Can't locate file Template/Plugin/Foo.pm in @INC (@INC contains: /home/acme/tmp/Template-Toolkit-2.06e/t/test/plugin ./lib ../lib blib/arch blib/lib /home/acme/lib/perl5/5.7.3/i686-linux /home/acme/lib/perl5/5.7.3 /home/acme/lib/perl5/site_perl/5.7.3/i686-linux /home/acme/lib/perl5/site_perl/5.7.3 /home/acme/lib/perl5/site_perl .) at lib/Template/Plugins.pm line 193, <DATA> line 1.]
not ok 23
HTH, Leon
--
Leon Brocard.............................http://www.astray.com/
Nanoware...............................http://www.nanoware.org/
... Why you say you no bunny rabbit when you have little powder-puff tail?
--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="context.t.diff"
--- t/context.t.orig Wed Mar 13 10:11:16 2002
+++ t/context.t Wed Mar 13 10:20:58 2002
@@ -143,7 +143,7 @@
eval {
$plugin = $context->plugin('no_such_plugin');
};
-ok( "$@" eq 'plugin error - no_such_plugin: plugin not found' );
+ok( "$@" =~ /plugin error.*no_such_plugin/ );
#------------------------------------------------------------------------
# filter()
--/04w6evG8XlLl3ft--