mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
using os.path.join to join paths instead of string concatenation
This commit is contained in:
parent
3ad1bd2f20
commit
92dce0b83b
75 changed files with 390 additions and 390 deletions
|
|
@ -22,12 +22,12 @@ def test_run():
|
|||
assert returncode == 0, 'OpenMC did not exit successfully.'
|
||||
|
||||
def test_plots_exists():
|
||||
assert os.path.exists(cwd + '/1_plot.ppm'), 'Plot 1 result does not exist.'
|
||||
assert os.path.exists(cwd + '/2_plot.ppm'), 'Plot 2 result does not exist.'
|
||||
assert os.path.exists(cwd + '/3_plot.ppm'), 'Plot 3 result does not exist.'
|
||||
assert os.path.exists(os.path.join(cwd ,'1_plot.ppm')), 'Plot 1 result does not exist.'
|
||||
assert os.path.exists(os.path.join(cwd ,'2_plot.ppm')), 'Plot 2 result does not exist.'
|
||||
assert os.path.exists(os.path.join(cwd ,'3_plot.ppm')), 'Plot 3 result does not exist.'
|
||||
|
||||
def teardown():
|
||||
output = [cwd + '/1_plot.ppm', cwd + '/2_plot.ppm', cwd + '/3_plot.ppm']
|
||||
output = [os.path.join(cwd ,'1_plot.ppm'), os.path.join(cwd ,'2_plot.ppm'), os.path.join(cwd ,'3_plot.ppm')]
|
||||
for f in output:
|
||||
if os.path.exists(f):
|
||||
os.remove(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue