From c943128587e846d1e477ba9b37cdfa49d05d18df Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 25 Mar 2022 13:25:55 -0500 Subject: [PATCH 1/3] Add pytest request path to location of cleanup files in cpp driver test --- tests/regression_tests/cpp_driver/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regression_tests/cpp_driver/test.py b/tests/regression_tests/cpp_driver/test.py index 95912b3f7..e8b1c62ac 100644 --- a/tests/regression_tests/cpp_driver/test.py +++ b/tests/regression_tests/cpp_driver/test.py @@ -48,8 +48,8 @@ def cpp_driver(request): finally: # Remove local build directory when test is complete - shutil.rmtree('build') - os.remove('CMakeLists.txt') + shutil.rmtree(request.node.path.parent / 'build') + os.remove(request.node.path.parent / 'CMakeLists.txt') @pytest.fixture From d3535a521e06958f5d9f16c00c5238f60f825300 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 11 Apr 2022 12:23:23 -0500 Subject: [PATCH 2/3] Add Python pickle files to ignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 88e59895d..3b2a24a4d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.o *.log *.out +*.pkl # Compiler python objects *.pyc From 98f5da737f7607cc82d7d8b51fa76ff697c0f579 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Sat, 6 Aug 2022 06:20:11 -0500 Subject: [PATCH 3/3] rm space --- openmc/universe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/universe.py b/openmc/universe.py index 78f75bbfc..4e9cd91f3 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -785,7 +785,7 @@ class DAGMCUniverse(UniverseBase): Universe instance """ - bounding_cell = openmc.Cell(fill=self, cell_id =bounding_cell_id, region=self.bounding_region(**kwargs)) + bounding_cell = openmc.Cell(fill=self, cell_id=bounding_cell_id, region=self.bounding_region(**kwargs)) return openmc.Universe(cells=[bounding_cell]) @classmethod