[PATCH 1/4] We also need to catch ValueError on mock.disk.TestFile.__del__.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 tests/mock/disk.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/mock/disk.py b/tests/mock/disk.py
index 4fe4c76..3ee98aa 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):
-- 
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux