Fix spurious test failure with previously loaded module #2

Merged
merged 1 commit into from May 27, 2015

Projects

None yet

2 participants

@nanis
Contributor
nanis commented May 26, 2015

Recent development versions of Test::More load List::Util. Therefore, the @INC hook is skipped when it comes to testing whether the attempt to require List::Util dies.

Fix this spurious test failure by deleting each disallowed module from %INC prior to testing.

This addresses my earlier bug report.

@perlancar perlancar merged commit abe7f7f into perlancar:master May 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment