Skip to content

Commit

Permalink
read files as :raw in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed May 2, 2024
1 parent 3c9df7e commit 8bc5f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/corpus.t
Expand Up @@ -40,7 +40,7 @@ my $parser = CPAN::Changes::Parser->new(version_like => qr/\{\{\s*\$NEXT\s*\}\}/

for my $log (@ARGV ? @ARGV : glob('corpus/dists/*.changes')) {
my $content = do {
open my $fh, '<', $log
open my $fh, '<:raw', $log
or die "can't read $log: $!";
local $/;
<$fh>;
Expand Down
2 changes: 1 addition & 1 deletion t/raw.t
Expand Up @@ -22,7 +22,7 @@ my $parser = CPAN::Changes::Parser->new(version_like => qr/\{\{\s*\$NEXT\s*\}\}/

for my $log (@ARGV ? @ARGV : glob('corpus/dists/*.changes')) {
my $content = do {
open my $fh, '<', $log
open my $fh, '<:raw', $log
or die "can't read $log: $!";
local $/;
<$fh>;
Expand Down

0 comments on commit 8bc5f10

Please sign in to comment.