Fix spurious cleanup error.

This commit is contained in:
Stuart D. Gathman
2016-07-25 22:12:27 -04:00
committed by Scott Kitterman
parent 67d974638a
commit 0863bb5602
+2 -1
View File
@@ -11,7 +11,8 @@ class AddrCacheTestCase(unittest.TestCase):
self.fname = 'test.dat'
def tearDown(self):
os.remove(self.fname)
if os.path.exists(self.fname):
os.remove(self.fname)
def testAdd(self):
cache = AddrCache(fname=self.fname)