summaryrefslogtreecommitdiffstats
path: root/t/hide_middleman.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-01-04 17:52:12 -0600
committerJesse Luehrs <doy@tozt.net>2012-01-04 17:57:37 -0600
commit79b443187ee06d8ee7eedc29012e2b68235e3cd1 (patch)
treecc0d02a87ca053e4ea5a7f3b3a65a7758ed2db13 /t/hide_middleman.t
parent769d407137b20818b5ca38ab8b0904e9c1eb7a5d (diff)
downloadcircular-require-79b443187ee06d8ee7eedc29012e2b68235e3cd1.tar.gz
circular-require-79b443187ee06d8ee7eedc29012e2b68235e3cd1.zip
use filenames in the "from" part too
this also stops using "caller", which can produce incorrect results if there are multiple packages in a file, or if you follow it up too far (saying that the cycle is from 'main' isn't correct)
Diffstat (limited to 't/hide_middleman.t')
-rw-r--r--t/hide_middleman.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/hide_middleman.t b/t/hide_middleman.t
index 72fa9c6..90950b2 100644
--- a/t/hide_middleman.t
+++ b/t/hide_middleman.t
@@ -16,7 +16,7 @@ my @warnings;
is_deeply(
\@warnings,
- ["Circular require detected: Foo.pm (from Bar)\n"],
+ ["Circular require detected: Foo.pm (from Bar.pm)\n"],
"Show the module that used base, instead of 'base' when a cycle occurs from a use base."
);