FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Server Development

 
 
LinkBack Thread Tools
 
Old 07-29-2011, 02:58 PM
Chris Lumens
 
Default We also need to catch ValueError on mock.disk.TestFile.__del__.

---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 07-29-2011, 11:02 PM
"Brian C. Lane"
 
Default We also need to catch ValueError on mock.disk.TestFile.__del__.

Ack to these 4

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org