Skip Menu |

This queue is for tickets about the Module-Runtime CPAN distribution.

Report information
The Basics
Id: 104245
Status: new
Priority: 0/
Queue: Module-Runtime

Owner: Nobody in particular
Requestors: KENTNL [...]
Cc: ether [...]

Bug Information
Severity: (no value)
Broken in: 0.014
Fixed in: (no value)

Subject: all modules fail to load under Test::Without

This module fails much worse than Devel::Hide's case. Devel::Hide only fails on the hidden module, however, Test::Without fails on *every* module regardless.

perl /tmp/
not ok 1 - Hidden package does not cause exceptions
#   Failed test 'Hidden package does not cause exceptions'
#   at /tmp/ line 21.
# Can't locate object method "INC" via package "Test::Without::coderef" at /home/kent/perl5/perlbrew/perls/5.21.8-c/lib/site_perl/5.21.9/Module/ line 317.
# Looks like you failed 1 test of 1.

text/x-perl 457b
use strict; use warnings; use Test::More; BEGIN { eval { require Test::Without; 1 } or plan skip_all => "Test::Without required for this test"; } use Test::Without; use Module::Runtime qw( require_module ); my $error; my $return; my $ok; run { local $@; eval { $return = require_module(qw( if )); $ok = 1 }; $error = $@; } without "I::Do::Not::Exist"; ok( $ok, "Hidden package does not cause exceptions" ) or diag explain $error; done_testing;

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to