Apply suggestions from @paulromano

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Shriwise 2023-02-21 00:42:27 -06:00 committed by GitHub
parent 65852f4fbc
commit b8c7c76444
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -405,7 +405,7 @@ void load_state_point()
if (simulation::restart_batch >= settings::n_max_batches) {
fatal_error(fmt::format(
"The number of batches specified for simiulation ({}) is smaller"
"The number of batches specified for simulation ({}) is smaller"
" than the number of batches in the restart statepoint file ({})",
settings::n_max_batches, simulation::restart_batch));
}

View file

@ -3,13 +3,12 @@ import os
from pathlib import Path
import openmc
import pytest
from tests.testing_harness import TestHarness
from tests.regression_tests import config
from tests import cdtemp
import pytest
class StatepointRestartTestHarness(TestHarness):
def __init__(self, final_sp, restart_sp):
super().__init__(final_sp)
@ -65,8 +64,7 @@ def test_statepoint_restart():
def test_batch_check(request):
xmls = glob.glob('*.xml')
xmls = [request.fspath.dirpath() / Path(f) for f in xmls]
xmls = list(request.path.parent.glob('*.xml'))
with cdtemp(xmls):
model = openmc.Model.from_xml()