Updating globs

This commit is contained in:
Patrick Shriwise 2023-02-21 00:48:23 -06:00
parent 1b68e61a3e
commit 0aa36836b3

View file

@ -1,4 +1,3 @@
import glob
import os
from pathlib import Path
@ -44,7 +43,7 @@ class StatepointRestartTestHarness(TestHarness):
def _run_openmc_restart(self):
# Get the name of the statepoint file.
statepoint = glob.glob(os.path.join(os.getcwd(), self._restart_sp))
statepoint = list(Path(os.getcwd()).glob(self._restart_sp))
assert len(statepoint) == 1
statepoint = statepoint[0]
@ -83,4 +82,4 @@ def test_batch_check(request):
sp_file = model.run(restart_file=sp_file)
sp = openmc.StatePoint(sp_file)
assert sp.n_batches == 15
assert sp.n_batches == 15