From b8c7c7644422a7bd8b83cb096c3b50c4ef97ce00 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Tue, 21 Feb 2023 00:42:27 -0600 Subject: [PATCH] Apply suggestions from @paulromano Co-authored-by: Paul Romano --- src/state_point.cpp | 2 +- tests/regression_tests/statepoint_restart/test.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/state_point.cpp b/src/state_point.cpp index 23538da59d..dfd3d381b5 100644 --- a/src/state_point.cpp +++ b/src/state_point.cpp @@ -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)); } diff --git a/tests/regression_tests/statepoint_restart/test.py b/tests/regression_tests/statepoint_restart/test.py index 9ab528e617..35df4f07d2 100644 --- a/tests/regression_tests/statepoint_restart/test.py +++ b/tests/regression_tests/statepoint_restart/test.py @@ -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()