diff -pruN 0.036-1/Changes 0.037-1/Changes
--- 0.036-1/Changes	2023-07-26 15:31:19.000000000 +0000
+++ 0.037-1/Changes	2025-05-15 20:45:19.000000000 +0000
@@ -1,5 +1,8 @@
 Revision history for Test-MockFile
 
+0.037   4/15/2025
+- Fix unit test broken in perl 5.41.4
+
 0.036   7/26/2023
 - GH #181 - Detect incorrect usage of add_strict_rule_for_command
 
diff -pruN 0.036-1/META.json 0.037-1/META.json
--- 0.036-1/META.json	2023-07-26 15:33:02.000000000 +0000
+++ 0.037-1/META.json	2025-05-15 20:47:07.000000000 +0000
@@ -58,6 +58,6 @@
          "url" : "https://github.com/cpanelinc/Test-MockFile"
       }
    },
-   "version" : "0.036",
+   "version" : "0.037",
    "x_serialization_backend" : "JSON::PP version 4.07"
 }
diff -pruN 0.036-1/META.yml 0.037-1/META.yml
--- 0.036-1/META.yml	2023-07-26 15:33:02.000000000 +0000
+++ 0.037-1/META.yml	2025-05-15 20:47:07.000000000 +0000
@@ -33,5 +33,5 @@ resources:
   bugtracker: https://github.com/cpanelinc/Test-MockFile/issues
   license: http://dev.perl.org/licenses/
   repository: https://github.com/cpanelinc/Test-MockFile
-version: '0.036'
+version: '0.037'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -pruN 0.036-1/debian/changelog 0.037-1/debian/changelog
--- 0.036-1/debian/changelog	2023-08-09 01:32:19.000000000 +0000
+++ 0.037-1/debian/changelog	2025-05-16 16:38:51.000000000 +0000
@@ -1,3 +1,11 @@
+libtest-mockfile-perl (0.037-1) unstable; urgency=medium
+
+  * Team upload.
+  * Import upstream version 0.037.
+  * Declare compliance with Debian Policy 4.7.2.
+
+ -- gregor herrmann <gregoa@debian.org>  Fri, 16 May 2025 18:38:51 +0200
+
 libtest-mockfile-perl (0.036-1) unstable; urgency=medium
 
   * Team upload.
diff -pruN 0.036-1/debian/control 0.037-1/debian/control
--- 0.036-1/debian/control	2023-08-09 01:32:19.000000000 +0000
+++ 0.037-1/debian/control	2025-05-16 16:38:51.000000000 +0000
@@ -15,7 +15,7 @@ Build-Depends-Indep: libfile-slurper-per
                      libtest2-tools-explain-perl <!nocheck>,
                      libtext-glob-perl <!nocheck>,
                      perl
-Standards-Version: 4.6.2
+Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtest-mockfile-perl
 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtest-mockfile-perl.git
 Homepage: https://metacpan.org/release/Test-MockFile
diff -pruN 0.036-1/lib/Test/MockFile/DirHandle.pm 0.037-1/lib/Test/MockFile/DirHandle.pm
--- 0.036-1/lib/Test/MockFile/DirHandle.pm	2023-07-26 15:32:06.000000000 +0000
+++ 0.037-1/lib/Test/MockFile/DirHandle.pm	2025-05-15 20:44:25.000000000 +0000
@@ -10,7 +10,7 @@ package Test::MockFile::DirHandle;
 use strict;
 use warnings;
 
-our $VERSION = '0.036';
+our $VERSION = '0.037';
 
 =head1 NAME
 
@@ -19,7 +19,7 @@ L<Test::MockFile> to give out for opendi
 
 =head1 VERSION
 
-Version 0.036
+Version 0.037
 
 =cut
 
diff -pruN 0.036-1/lib/Test/MockFile/FileHandle.pm 0.037-1/lib/Test/MockFile/FileHandle.pm
--- 0.036-1/lib/Test/MockFile/FileHandle.pm	2023-07-26 15:32:06.000000000 +0000
+++ 0.037-1/lib/Test/MockFile/FileHandle.pm	2025-05-15 20:44:25.000000000 +0000
@@ -12,7 +12,7 @@ use warnings;
 use Errno qw/EBADF/;
 use Scalar::Util ();
 
-our $VERSION = '0.036';
+our $VERSION = '0.037';
 
 my $files_being_mocked;
 {
@@ -27,7 +27,7 @@ tie to on B<open> or B<sysopen>.
 
 =head1 VERSION
 
-Version 0.036
+Version 0.037
 
 =cut
 
diff -pruN 0.036-1/lib/Test/MockFile/Plugin/FileTemp.pm 0.037-1/lib/Test/MockFile/Plugin/FileTemp.pm
--- 0.036-1/lib/Test/MockFile/Plugin/FileTemp.pm	2023-07-26 15:32:06.000000000 +0000
+++ 0.037-1/lib/Test/MockFile/Plugin/FileTemp.pm	2025-05-15 20:44:25.000000000 +0000
@@ -9,7 +9,7 @@ use Test::MockModule qw{strict};
 
 use Carp qw(croak);
 
-our $VERSION = '0.036';
+our $VERSION = '0.037';
 
 sub register {
     my ($self) = @_;
diff -pruN 0.036-1/lib/Test/MockFile/Plugin.pm 0.037-1/lib/Test/MockFile/Plugin.pm
--- 0.036-1/lib/Test/MockFile/Plugin.pm	2023-07-26 15:32:06.000000000 +0000
+++ 0.037-1/lib/Test/MockFile/Plugin.pm	2025-05-15 20:44:25.000000000 +0000
@@ -6,7 +6,7 @@ use warnings;
 use Carp qw(croak);
 require Test::MockFile;    # load Test::MockFile without setting the strict mode
 
-our $VERSION = '0.036';
+our $VERSION = '0.037';
 
 sub new {
     my ( $class, %opts ) = @_;
diff -pruN 0.036-1/lib/Test/MockFile/Plugins.pm 0.037-1/lib/Test/MockFile/Plugins.pm
--- 0.036-1/lib/Test/MockFile/Plugins.pm	2023-07-26 15:32:06.000000000 +0000
+++ 0.037-1/lib/Test/MockFile/Plugins.pm	2025-05-15 20:44:25.000000000 +0000
@@ -3,7 +3,7 @@ package Test::MockFile::Plugins;
 use strict;
 use warnings;
 
-our $VERSION = '0.036';
+our $VERSION = '0.037';
 
 our @NAMESPACES = (q[Test::MockFile::Plugin]);
 
diff -pruN 0.036-1/lib/Test/MockFile.pm 0.037-1/lib/Test/MockFile.pm
--- 0.036-1/lib/Test/MockFile.pm	2023-07-26 15:32:06.000000000 +0000
+++ 0.037-1/lib/Test/MockFile.pm	2025-05-15 20:44:25.000000000 +0000
@@ -47,11 +47,11 @@ files without touching the file system.
 
 =head1 VERSION
 
-Version 0.036
+Version 0.037
 
 =cut
 
-our $VERSION = '0.036';
+our $VERSION = '0.037';
 
 our %files_being_mocked;
 
diff -pruN 0.036-1/t/opendir.t 0.037-1/t/opendir.t
--- 0.036-1/t/opendir.t	2022-11-30 18:28:25.000000000 +0000
+++ 0.037-1/t/opendir.t	2025-05-15 20:39:33.000000000 +0000
@@ -39,7 +39,7 @@ is( opendir( my $notdir_fh, $temp_notdir
 is( $! + 0,                                 ENOTDIR, '$! numeric is right.' );
 
 my ( $real_fh, $f3 ) = tempfile( DIR => $temp_dir );
-like( warning { readdir($real_fh) }, qr/^readdir\(\) attempted on invalid dirhandle \$fh/, "We only warn if the file handle or glob is invalid." );
+like( warning { readdir($real_fh) }, qr/^readdir\(\) attempted on (?:invalid dir)?handle \$fh/, "We only warn if the file handle or glob is invalid." );
 
 note "-------------- MOCK MODE --------------";
 my $abc = Test::MockFile->file( "$temp_dir/abc", 'hello' );
