Skip to content

Commit bf20e82

Browse files
committed
be compatible with older File::Temp
1 parent 42d6504 commit bf20e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/lib/MakeMaker/Test/Utils.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ Returns the return value of the given code.
429429
sub in_dir(&;$) {
430430
my $code = shift;
431431
require File::Temp;
432-
my $dir = shift || File::Temp->newdir;
432+
my $dir = shift || File::Temp::tempdir(TMPDIR => 1, CLEANUP => 1);
433433
# chdir to the new directory
434434
my $orig_dir = getcwd();
435435
chdir $dir or die "Can't chdir to $dir: $!";

0 commit comments

Comments
 (0)