diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index a830935a009..455065f71b1 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -156,6 +156,8 @@ def check_args_to_onerror(self, func, arg, exc): # FUSE experienced a failure earlier in the process # at os.listdir. The first failure may legally # be either. + if support.verbose: + print("onerror [%d]: %r" % (self.errorState, (func, arg, exc[1]))) if 0 <= self.errorState < 2: if func is os.unlink: self.assertIn(arg, [self.child_file_path, self.child_dir_path])