Subject: | t/z_pod-coverage.t causes test failures on Test::More <= 0.87_01 |
MIME-Version: | 1.0 |
X-Mailer: | MIME-tools 5.504 (Entity 5.504) |
X-RT-Interface: | Web |
Message-ID: | <rt-4.0.18-2867-1437846034-641.0-0-0 [...] rt.cpan.org> |
X-RT-Original-Encoding: | utf-8 |
Content-Type: | multipart/mixed; boundary="----------=_1437846034-2867-2" |
X-RT-Encrypt: | 0 |
X-RT-Sign: | 0 |
Content-Length: | 0 |
Content-Disposition: | inline |
Content-Type: | text/html; charset="utf-8" |
Content-Transfer-Encoding: | binary |
Content-Length: | 915 |
I see the test already has a guard that aims to prevent against failures on Test::More <= 0.88, however, it seems to fail anyway because the sub declaration renders a compile failure before the `plan => ` line can get invoked:
Output as follows:
t/z_pod-coverage............Bareword "done_testing" not allowed while "strict subs" in use at t/z_pod-coverage.t line 18.
Execution of t/z_pod-coverage.t aborted due to compilation errors.
Patching around to solve this problem with a BEGIN block is reasonably trivial, but patch included anyway and I have personally tested with this patch applied with success.
I would appreciate if this patch (or some equivalent workaround) landed in some future release, but I'm not pressed for a when =)
Thanks.
Subject: | filter-1.54-pod-coverage-test.patch |
MIME-Version: | 1.0 |
Content-Type: | text/x-patch; name="filter-1.54-pod-coverage-test.patch" |
X-Mailer: | MIME-tools 5.504 (Entity 5.504) |
Content-Disposition: | inline; filename="filter-1.54-pod-coverage-test.patch" |
Content-Transfer-Encoding: | binary |
Content-Length: | 638 |