Skip to content

Commit 42d67ec

Browse files
committed
Trying to clean test crumbs
1 parent 55dcf69 commit 42d67ec

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

armi/bookkeeping/db/tests/test_databaseInterface.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ def setUp(self):
140140

141141
def tearDown(self):
142142
self.td.__exit__(None, None, None)
143+
# sometimes this crumb is being left, let's delete it
144+
crumb = os.path.join(PROJECT_ROOT, "armiRun.h5")
145+
if os.path.exists(crumb):
146+
os.remove(crumb)
143147

144148
def test_writeSystemAttributes(self):
145149
"""Test the writeSystemAttributes method.
@@ -332,6 +336,10 @@ def tearDownClass(cls):
332336
cls.td.__exit__(None, None, None)
333337
del cls.r
334338
cls.r = None
339+
# sometimes this crumb is being left, let's delete it
340+
crumb = os.path.join(PROJECT_ROOT, "armiRun.h5")
341+
if os.path.exists(crumb):
342+
os.remove(crumb)
335343

336344
def _fullCoreSizeChecker(self, r):
337345
self.assertEqual(r.core.numRings, 3)
@@ -538,3 +546,8 @@ def test_standardRestart(self):
538546
firstEndTime, o.r.p.time
539547
),
540548
)
549+
550+
# sometimes this crumb is being left, let's delete it
551+
crumb = os.path.join(PROJECT_ROOT, "armiRun.h5")
552+
if os.path.exists(crumb):
553+
os.remove(crumb)

0 commit comments

Comments
 (0)