projects
/
perl.git
/ commitdiff
free
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4e52a9b
)
method_caching.t: Load test.pl at BEGIN time
author
Father Chrysostomos <sprout@cpan.org>
Thu, 29 Nov 2012 02:05:28 +0000 (18:05 -0800)
committer
Father Chrysostomos <sprout@cpan.org>
Thu, 29 Nov 2012 17:11:31 +0000 (09:11 -0800)
This stops $::TODO from producing a used-only-once warning.
t/mro/method_caching.t
patch
|
blob
|
blame
|
history
diff --git
a/t/mro/method_caching.t
b/t/mro/method_caching.t
index
d691926
..
cbbd655
100644
(file)
--- a/
t/mro/method_caching.t
+++ b/
t/mro/method_caching.t
@@
-11,10
+11,9
@@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
}
+ require './test.pl';
}
-require './test.pl';
-
{
package MCTest::Base;
sub foo { return $_[1]+1 };