From 74149a17974807b034aea821f550226ba5c698d3 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 29 Jul 2011 10:22:18 -0400 Subject: We also need to catch ValueError on mock.disk.TestFile.__del__. --- tests/mock/disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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): -- cgit