summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-23 19:32:36 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-23 19:32:36 (GMT)
commitf3a166d799f9c86ffbbd5539de8e9faf314d7bcd (patch)
tree67327e0a709982bf9d6d91c82e05e985fd4fea48 /Lib/test/test_shutil.py
parent2f8a75c7a750ba06f9eeaf8e949d953852136e37 (diff)
downloadcpython-f3a166d799f9c86ffbbd5539de8e9faf314d7bcd.zip
cpython-f3a166d799f9c86ffbbd5539de8e9faf314d7bcd.tar.gz
cpython-f3a166d799f9c86ffbbd5539de8e9faf314d7bcd.tar.bz2
Add debug output to test_shutil
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r--Lib/test/test_shutil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index a830935..455065f 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])