Skip to content

Commit

Permalink
Fix leftover temporary directories from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-slac committed Nov 2, 2021
1 parent 2a7a245 commit 66f3af7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,15 +797,10 @@ def testChecksum(self):
self.assertIsNotNone(infos[0].checksum)


class TrashDatastoreTestCase(PosixDatastoreTestCase, unittest.TestCase):
class TrashDatastoreTestCase(PosixDatastoreTestCase):
"""Restrict trash test to FileDatastore."""
configFile = os.path.join(TESTDIR, "config/basic/butler.yaml")

def setUp(self):
# Override the working directory before calling the base class
self.root = tempfile.mkdtemp(dir=TESTDIR)
super().setUp()

def testTrash(self):
datastore, *refs = self.prepDeleteTest(n_refs=10)

Expand Down

0 comments on commit 66f3af7

Please sign in to comment.