Add debug output to test_shutil

This commit is contained in:
Antoine Pitrou 2012-06-23 21:32:36 +02:00
parent 2f8a75c7a7
commit f3a166d799
1 changed files with 2 additions and 0 deletions

View 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])