summaryrefslogtreecommitdiffstats
path: root/tests/mock/disk.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mock/disk.py')
-rw-r--r--tests/mock/disk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mock/disk.py b/tests/mock/disk.py
index 4fe4c7603..3ee98aab2 100644
--- a/tests/mock/disk.py
+++ b/tests/mock/disk.py
@@ -41,7 +41,7 @@ class DiskIO(object):
def __del__(self):
try:
self.close()
- except (AttributeError):
+ except (AttributeError, ValueError):
pass
def __enter__(self):