summaryrefslogtreecommitdiff
path: root/t/mro
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-11-28 18:05:28 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-11-29 09:11:31 -0800
commitaf5aa9e378e68e5202ada6a61d269e74cc9fe298 (patch)
tree9d4b389e5f294230eef5d95d18ee6039d0bff774 /t/mro
parent4e52a9b69e39f85d6a5d7ac598c61ff0b00f94ee (diff)
downloadperl-af5aa9e378e68e5202ada6a61d269e74cc9fe298.tar.gz
method_caching.t: Load test.pl at BEGIN time
This stops $::TODO from producing a used-only-once warning.
Diffstat (limited to 't/mro')
-rw-r--r--t/mro/method_caching.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/mro/method_caching.t b/t/mro/method_caching.t
index d691926941..cbbd655f39 100644
--- 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 };