From: Antoine Pitrou Date: Sat, 23 Jun 2012 19:32:36 +0000 (+0200) Subject: Add debug output to test_shutil X-Git-Tag: v3.3.0b1~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3a166d799f9c86ffbbd5539de8e9faf314d7bcd;p=python Add debug output to test_shutil --- diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index a830935a00..455065f71b 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -156,6 +156,8 @@ class TestShutil(unittest.TestCase): # 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])