oalders / html-restrict

HTML::Restrict - Strip away unwanted HTML tags
Other
10 stars 9 forks source link

Test suite fails (if older Type::Tiny is installed?) #32

Closed eserte closed 5 years ago

eserte commented 5 years ago

On some of my smokers the test suite fails like this:

...
Argument "$_ >= 2" isn't numeric in numeric eq (==) at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/Type/Tiny.pm line 328.
Argument "$_ >= 2" isn't numeric in numeric eq (==) at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/Type/Tiny.pm line 328.
Argument "$_ >= 2" isn't numeric in numeric eq (==) at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/Type/Tiny.pm line 328.
Argument "$_ >= 2" isn't numeric in numeric eq (==) at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/Type/Tiny.pm line 328.
Argument "$_ >= 2" isn't numeric in numeric eq (==) at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/Type/Tiny.pm line 328.
Argument "$_ >= 2" isn't numeric in numeric eq (==) at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/Type/Tiny.pm line 328.
isa check for "max_parser_loops" failed: Can't use string ("$_ >= 2") as a subroutine ref while "strict refs" in use at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/Type/Tiny.pm line 381.
t/attribute_constraints.t .. 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
... (etc) ...

Possible reason: it fails if older Type::Tiny is installed. 1.002001 and later is OK, 1.000006 is not.

oalders commented 5 years ago

Thanks very much for this @eserte!