tests: Hash randomization can cause .pl MIME to vary #959

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@olof

Since Perl 5.18, MIME::Types has started to vary the reported MIME
type for perl scripts. It can be either application/perl or text/perl.
This change will make sure that the test verifies that the
content-type is the same as MIME::Types reports for .pl, without
having to know which one it is.

You can reproduce the issue by doing

 perl -MMIME::Types -E 'say MIME::Types->new->mimeTypeOf("pl")'

a few times on perl 5.18.

This was reported to Debian, http://bugs.debian.org/720975.

@olof olof tests: Hash randomization can cause .pl MIME to vary
Since Perl 5.18, MIME::Types has started to vary the reported MIME
type for perl scripts. It can be either application/perl or text/perl.
This change will make sure that the test verifies that the
content-type is the same as MIME::Types reports for .pl, without
having to know which one it is.
0210525
@olof

Looking further, I found https://rt.cpan.org/Public/Bug/Display.html?id=82100 as well.

@yanick yanick added a commit that closed this pull request Sep 3, 2013
@yanick yanick Merge branch 'pr/959' into devel
Fixes #959
7f051ce
@yanick yanick closed this in 7f051ce Sep 3, 2013
@yanick

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment