changeset 77645:baaaed041e49

Add debug output to test_shutil
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 23 Jun 2012 21:32:36 +0200
parents 58c0f261a3b7
children ed0510588e2b
files Lib/test/test_shutil.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/test/test_shutil.py	Sat Jun 23 21:28:15 2012 +0200
+++ b/Lib/test/test_shutil.py	Sat Jun 23 21:32:36 2012 +0200
@@ -156,6 +156,8 @@
         # 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])