test: use a tempdir in TestRingData

Change-Id: I88e2e743ccbd6292bc1570ae0efbdd45dcced8cc
This commit is contained in:
Clay Gerrard
2025-06-27 15:04:43 -05:00
parent b2a0d96f6d
commit 53b66155a7

View File

@@ -50,9 +50,7 @@ class TestRingBase(unittest.TestCase):
class TestRingData(unittest.TestCase):
def setUp(self):
self.testdir = os.path.join(os.path.dirname(__file__), 'ring_data')
rmtree(self.testdir, ignore_errors=1)
os.mkdir(self.testdir)
self.testdir = mkdtemp()
def tearDown(self):
rmtree(self.testdir, ignore_errors=1)