Skip Menu |

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

Report information
The Basics
Id: 77917
Status: resolved
Priority: 0/
Queue: Module-Pluggable

People
Owner: Nobody in particular
Requestors: stephen.baynes [...] smoothwall.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.9
Fixed in: (no value)



Subject: Module::Pluggable behaves differently in a test environment
I discover after a wasted few hours that if Module::Pluggable thinks it is in a test environment then it only searches include paths that contain 'blib'. This makes it rather difficult to use it in a test environment. It should behave the same in a test environment as in a normal one. If the behaviour has to be changed for its own self test then this should be an explicit action of its own test script rather than an automatic action of the module.
This was somewhat fixed in commit 3fc7424cdca3d427f55ac64ac223a5392f40db16 https://github.com/simonwistow/Module- Pluggable/commit/3fc7424cdca3d427f55ac64ac223a5392f40db16 I haven't removed the behaviour for a couple of reasons, not least I don't want it to change from under people now even if it was wrong to begin with. Instead I've documented it and also allowed a way to override it. Sorry for the inconvenience.
Released as 4.1