summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2011-07-29 10:22:18 -0400
committerChris Lumens <clumens@redhat.com>2011-08-01 10:02:28 -0400
commit74149a17974807b034aea821f550226ba5c698d3 (patch)
tree02e976c3baa2c4fe24c3ea2f96645886c09a14eb /tests
parent47915e0fbcd5bb971ddc928fb0b46222be5387e1 (diff)
downloadanaconda-74149a17974807b034aea821f550226ba5c698d3.tar.gz
anaconda-74149a17974807b034aea821f550226ba5c698d3.tar.xz
anaconda-74149a17974807b034aea821f550226ba5c698d3.zip
We also need to catch ValueError on mock.disk.TestFile.__del__.
Diffstat (limited to 'tests')
-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):