mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Pass strings to os functions in test_deplete_fission_yields
os.remove and os.chdir support path-like objects only for python 3.6+
This commit is contained in:
parent
1e5cfe0961
commit
991a36df8d
1 changed files with 5 additions and 6 deletions
|
|
@ -63,13 +63,12 @@ def materials(tmpdir_factory):
|
|||
with capi.run_in_memory():
|
||||
yield [capi.Material(), capi.Material()]
|
||||
finally:
|
||||
print(os.path.abspath(os.curdir))
|
||||
os.remove(tmpdir / "settings.xml")
|
||||
os.remove(tmpdir / "geometry.xml")
|
||||
os.remove(tmpdir / "materials.xml")
|
||||
os.remove(tmpdir / "summary.h5")
|
||||
# Convert to strings as os.remove in py 3.5 doesn't support Paths
|
||||
for file_path in ("settings.xml", "geometry.xml", "materials.xml",
|
||||
"summary.h5"):
|
||||
os.remove(str(tmpdir / file_path))
|
||||
orig.chdir()
|
||||
os.rmdir(tmpdir)
|
||||
os.rmdir(str(tmpdir))
|
||||
|
||||
|
||||
def proxy_tally_data(tally, fill=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue