Fix spurious cleanup error.
This commit is contained in:
+2
-1
@@ -11,7 +11,8 @@ class AddrCacheTestCase(unittest.TestCase):
|
|||||||
self.fname = 'test.dat'
|
self.fname = 'test.dat'
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
os.remove(self.fname)
|
if os.path.exists(self.fname):
|
||||||
|
os.remove(self.fname)
|
||||||
|
|
||||||
def testAdd(self):
|
def testAdd(self):
|
||||||
cache = AddrCache(fname=self.fname)
|
cache = AddrCache(fname=self.fname)
|
||||||
|
|||||||
Reference in New Issue
Block a user