]> granicus.if.org Git - python/commitdiff
Add debug output to test_shutil
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 23 Jun 2012 19:32:36 +0000 (21:32 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 23 Jun 2012 19:32:36 +0000 (21:32 +0200)
Lib/test/test_shutil.py

index a830935a009a54499cd9aceb8c37a851af6c7f49..455065f71b172c1ca3237a48486298b98156d192 100644 (file)
@@ -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])