From 1fc0690d63036a2887ae72f42783827b1103237c Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Thu, 3 Apr 2014 08:15:54 -0400 Subject: [PATCH] change python syntax from == None to is None --- tests/test_basic/test_basic.py | 2 +- tests/test_cmfd_feed/test_cmfd_feed.py | 2 +- tests/test_cmfd_jfnk/test_cmfd_jfnk.py | 2 +- tests/test_cmfd_nofeed/test_cmfd_nofeed.py | 2 +- tests/test_confidence_intervals/test_confidence_intervals.py | 2 +- tests/test_density_atombcm/test_density_atombcm.py | 2 +- tests/test_density_atomcm3/test_density_atomcm3.py | 2 +- tests/test_density_kgm3/test_density_kgm3.py | 2 +- tests/test_density_sum/test_density_sum.py | 2 +- .../test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py | 2 +- .../test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py | 2 +- tests/test_energy_grid/test_energy_grid.py | 2 +- tests/test_entropy/test_entropy.py | 2 +- tests/test_filter_cell/test_filter_cell.py | 2 +- tests/test_filter_cellborn/test_filter_cellborn.py | 2 +- tests/test_filter_energy/test_filter_energy.py | 2 +- tests/test_filter_energyout/test_filter_energyout.py | 2 +- tests/test_filter_group_transfer/test_filter_group_transfer.py | 2 +- tests/test_filter_material/test_filter_material.py | 2 +- tests/test_filter_mesh_2d/test_filter_mesh_2d.py | 2 +- tests/test_filter_mesh_3d/test_filter_mesh_3d.py | 2 +- tests/test_filter_universe/test_filter_universe.py | 2 +- tests/test_fixed_source/test_fixed_source.py | 2 +- tests/test_lattice/test_lattice.py | 2 +- tests/test_lattice_multiple/test_lattice_multiple.py | 2 +- tests/test_natural_element/test_natural_element.py | 2 +- tests/test_output/test_output.py | 2 +- tests/test_particle_restart/test_particle_restart.py | 2 +- tests/test_plot_background/test_plot_background.py | 2 +- tests/test_plot_basis/test_plot_basis.py | 2 +- tests/test_plot_colspec/test_plot_colspec.py | 2 +- tests/test_plot_mask/test_plot_mask.py | 2 +- tests/test_ptables_off/test_ptables_off.py | 2 +- tests/test_reflective_cone/test_reflective_cone.py | 2 +- tests/test_reflective_cylinder/test_reflective_cylinder.py | 2 +- tests/test_reflective_plane/test_reflective_plane.py | 2 +- tests/test_reflective_sphere/test_reflective_sphere.py | 2 +- tests/test_rotation/test_rotation.py | 2 +- tests/test_salphabeta/test_salphabeta.py | 2 +- tests/test_salphabeta_multiple/test_salphabeta_multiple.py | 2 +- tests/test_score_MT/test_score_MT.py | 2 +- tests/test_score_absorption/test_score_absorption.py | 2 +- tests/test_score_current/test_score_current.py | 2 +- tests/test_score_events/test_score_events.py | 2 +- tests/test_score_fission/test_score_fission.py | 2 +- tests/test_score_flux/test_score_flux.py | 2 +- tests/test_score_kappafission/test_score_kappafission.py | 2 +- tests/test_score_nufission/test_score_nufission.py | 2 +- tests/test_score_nuscatter/test_score_nuscatter.py | 2 +- tests/test_score_scatter/test_score_scatter.py | 2 +- tests/test_score_scatter_n/test_score_scatter_n.py | 2 +- tests/test_score_scatter_pn/test_score_scatter_pn.py | 2 +- tests/test_score_total/test_score_total.py | 2 +- tests/test_seed/test_seed.py | 2 +- tests/test_source_angle_mono/test_source_angle_mono.py | 2 +- tests/test_source_energy_maxwell/test_source_energy_maxwell.py | 2 +- tests/test_source_energy_mono/test_source_energy_mono.py | 2 +- tests/test_source_file/test_source_file.py | 2 +- tests/test_source_point/test_source_point.py | 2 +- tests/test_sourcepoint_batch/test_sourcepoint_batch.py | 2 +- tests/test_sourcepoint_interval/test_sourcepoint_interval.py | 2 +- tests/test_sourcepoint_latest/test_sourcepoint_latest.py | 2 +- tests/test_sourcepoint_restart/test_sourcepoint_restart.py | 2 +- tests/test_statepoint_batch/test_statepoint_batch.py | 2 +- tests/test_statepoint_interval/test_statepoint_interval.py | 2 +- tests/test_statepoint_restart/test_statepoint_restart.py | 2 +- tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py | 2 +- tests/test_survival_biasing/test_survival_biasing.py | 2 +- tests/test_tally_assumesep/test_tally_assumesep.py | 2 +- tests/test_trace/test_trace.py | 2 +- tests/test_track_output/test_track_output.py | 2 +- tests/test_translation/test_translation.py | 2 +- tests/test_uniform_fs/test_uniform_fs.py | 2 +- tests/test_universe/test_universe.py | 2 +- tests/test_void/test_void.py | 2 +- 75 files changed, 75 insertions(+), 75 deletions(-) diff --git a/tests/test_basic/test_basic.py b/tests/test_basic/test_basic.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_basic/test_basic.py +++ b/tests/test_basic/test_basic.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_cmfd_feed/test_cmfd_feed.py b/tests/test_cmfd_feed/test_cmfd_feed.py index bafce9f444..4bc2914e3a 100644 --- a/tests/test_cmfd_feed/test_cmfd_feed.py +++ b/tests/test_cmfd_feed/test_cmfd_feed.py @@ -54,7 +54,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_cmfd_jfnk/test_cmfd_jfnk.py b/tests/test_cmfd_jfnk/test_cmfd_jfnk.py index 1386da3fee..0fae02dfdb 100644 --- a/tests/test_cmfd_jfnk/test_cmfd_jfnk.py +++ b/tests/test_cmfd_jfnk/test_cmfd_jfnk.py @@ -55,7 +55,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_cmfd_nofeed/test_cmfd_nofeed.py b/tests/test_cmfd_nofeed/test_cmfd_nofeed.py index 1386da3fee..0fae02dfdb 100644 --- a/tests/test_cmfd_nofeed/test_cmfd_nofeed.py +++ b/tests/test_cmfd_nofeed/test_cmfd_nofeed.py @@ -55,7 +55,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_confidence_intervals/test_confidence_intervals.py b/tests/test_confidence_intervals/test_confidence_intervals.py index 22932a02cd..30c53738fb 100644 --- a/tests/test_confidence_intervals/test_confidence_intervals.py +++ b/tests/test_confidence_intervals/test_confidence_intervals.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_density_atombcm/test_density_atombcm.py b/tests/test_density_atombcm/test_density_atombcm.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_density_atombcm/test_density_atombcm.py +++ b/tests/test_density_atombcm/test_density_atombcm.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_density_atomcm3/test_density_atomcm3.py b/tests/test_density_atomcm3/test_density_atomcm3.py index 77610a8261..c748062691 100644 --- a/tests/test_density_atomcm3/test_density_atomcm3.py +++ b/tests/test_density_atomcm3/test_density_atomcm3.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_density_kgm3/test_density_kgm3.py b/tests/test_density_kgm3/test_density_kgm3.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_density_kgm3/test_density_kgm3.py +++ b/tests/test_density_kgm3/test_density_kgm3.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_density_sum/test_density_sum.py b/tests/test_density_sum/test_density_sum.py index d6b4ac9cfa..f4167d1333 100644 --- a/tests/test_density_sum/test_density_sum.py +++ b/tests/test_density_sum/test_density_sum.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py b/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py index 1e61af4a2b..453b1951fc 100644 --- a/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py +++ b/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py b/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py +++ b/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_energy_grid/test_energy_grid.py b/tests/test_energy_grid/test_energy_grid.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_energy_grid/test_energy_grid.py +++ b/tests/test_energy_grid/test_energy_grid.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_entropy/test_entropy.py b/tests/test_entropy/test_entropy.py index 404b94634f..035a5c0ada 100644 --- a/tests/test_entropy/test_entropy.py +++ b/tests/test_entropy/test_entropy.py @@ -48,7 +48,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_cell/test_filter_cell.py b/tests/test_filter_cell/test_filter_cell.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_filter_cell/test_filter_cell.py +++ b/tests/test_filter_cell/test_filter_cell.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_cellborn/test_filter_cellborn.py b/tests/test_filter_cellborn/test_filter_cellborn.py index c5cb425422..15f73ee352 100644 --- a/tests/test_filter_cellborn/test_filter_cellborn.py +++ b/tests/test_filter_cellborn/test_filter_cellborn.py @@ -48,7 +48,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_energy/test_filter_energy.py b/tests/test_filter_energy/test_filter_energy.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_filter_energy/test_filter_energy.py +++ b/tests/test_filter_energy/test_filter_energy.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_energyout/test_filter_energyout.py b/tests/test_filter_energyout/test_filter_energyout.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_filter_energyout/test_filter_energyout.py +++ b/tests/test_filter_energyout/test_filter_energyout.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_group_transfer/test_filter_group_transfer.py b/tests/test_filter_group_transfer/test_filter_group_transfer.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_filter_group_transfer/test_filter_group_transfer.py +++ b/tests/test_filter_group_transfer/test_filter_group_transfer.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_material/test_filter_material.py b/tests/test_filter_material/test_filter_material.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_filter_material/test_filter_material.py +++ b/tests/test_filter_material/test_filter_material.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_mesh_2d/test_filter_mesh_2d.py b/tests/test_filter_mesh_2d/test_filter_mesh_2d.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_filter_mesh_2d/test_filter_mesh_2d.py +++ b/tests/test_filter_mesh_2d/test_filter_mesh_2d.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_mesh_3d/test_filter_mesh_3d.py b/tests/test_filter_mesh_3d/test_filter_mesh_3d.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_filter_mesh_3d/test_filter_mesh_3d.py +++ b/tests/test_filter_mesh_3d/test_filter_mesh_3d.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_filter_universe/test_filter_universe.py b/tests/test_filter_universe/test_filter_universe.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_filter_universe/test_filter_universe.py +++ b/tests/test_filter_universe/test_filter_universe.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_fixed_source/test_fixed_source.py b/tests/test_fixed_source/test_fixed_source.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_fixed_source/test_fixed_source.py +++ b/tests/test_fixed_source/test_fixed_source.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_lattice/test_lattice.py b/tests/test_lattice/test_lattice.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_lattice/test_lattice.py +++ b/tests/test_lattice/test_lattice.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_lattice_multiple/test_lattice_multiple.py b/tests/test_lattice_multiple/test_lattice_multiple.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_lattice_multiple/test_lattice_multiple.py +++ b/tests/test_lattice_multiple/test_lattice_multiple.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_natural_element/test_natural_element.py b/tests/test_natural_element/test_natural_element.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_natural_element/test_natural_element.py +++ b/tests/test_natural_element/test_natural_element.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_output/test_output.py b/tests/test_output/test_output.py index 4ed4255392..b19e5d76d6 100644 --- a/tests/test_output/test_output.py +++ b/tests/test_output/test_output.py @@ -59,7 +59,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_particle_restart/test_particle_restart.py b/tests/test_particle_restart/test_particle_restart.py index 4c63efe372..6c5dcf0be2 100644 --- a/tests/test_particle_restart/test_particle_restart.py +++ b/tests/test_particle_restart/test_particle_restart.py @@ -54,7 +54,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_plot_background/test_plot_background.py b/tests/test_plot_background/test_plot_background.py index fdf786314c..4c990578a4 100644 --- a/tests/test_plot_background/test_plot_background.py +++ b/tests/test_plot_background/test_plot_background.py @@ -33,7 +33,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_plot_basis/test_plot_basis.py b/tests/test_plot_basis/test_plot_basis.py index 2c650d8767..057fd09a97 100644 --- a/tests/test_plot_basis/test_plot_basis.py +++ b/tests/test_plot_basis/test_plot_basis.py @@ -35,7 +35,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_plot_colspec/test_plot_colspec.py b/tests/test_plot_colspec/test_plot_colspec.py index fdf786314c..4c990578a4 100644 --- a/tests/test_plot_colspec/test_plot_colspec.py +++ b/tests/test_plot_colspec/test_plot_colspec.py @@ -33,7 +33,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_plot_mask/test_plot_mask.py b/tests/test_plot_mask/test_plot_mask.py index 2c650d8767..057fd09a97 100644 --- a/tests/test_plot_mask/test_plot_mask.py +++ b/tests/test_plot_mask/test_plot_mask.py @@ -35,7 +35,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_ptables_off/test_ptables_off.py b/tests/test_ptables_off/test_ptables_off.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_ptables_off/test_ptables_off.py +++ b/tests/test_ptables_off/test_ptables_off.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_reflective_cone/test_reflective_cone.py b/tests/test_reflective_cone/test_reflective_cone.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_reflective_cone/test_reflective_cone.py +++ b/tests/test_reflective_cone/test_reflective_cone.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_reflective_cylinder/test_reflective_cylinder.py b/tests/test_reflective_cylinder/test_reflective_cylinder.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_reflective_cylinder/test_reflective_cylinder.py +++ b/tests/test_reflective_cylinder/test_reflective_cylinder.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_reflective_plane/test_reflective_plane.py b/tests/test_reflective_plane/test_reflective_plane.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_reflective_plane/test_reflective_plane.py +++ b/tests/test_reflective_plane/test_reflective_plane.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_reflective_sphere/test_reflective_sphere.py b/tests/test_reflective_sphere/test_reflective_sphere.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_reflective_sphere/test_reflective_sphere.py +++ b/tests/test_reflective_sphere/test_reflective_sphere.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_rotation/test_rotation.py b/tests/test_rotation/test_rotation.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_rotation/test_rotation.py +++ b/tests/test_rotation/test_rotation.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_salphabeta/test_salphabeta.py b/tests/test_salphabeta/test_salphabeta.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_salphabeta/test_salphabeta.py +++ b/tests/test_salphabeta/test_salphabeta.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_salphabeta_multiple/test_salphabeta_multiple.py b/tests/test_salphabeta_multiple/test_salphabeta_multiple.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_salphabeta_multiple/test_salphabeta_multiple.py +++ b/tests/test_salphabeta_multiple/test_salphabeta_multiple.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_MT/test_score_MT.py b/tests/test_score_MT/test_score_MT.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_MT/test_score_MT.py +++ b/tests/test_score_MT/test_score_MT.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_absorption/test_score_absorption.py b/tests/test_score_absorption/test_score_absorption.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_absorption/test_score_absorption.py +++ b/tests/test_score_absorption/test_score_absorption.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_current/test_score_current.py b/tests/test_score_current/test_score_current.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_current/test_score_current.py +++ b/tests/test_score_current/test_score_current.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_events/test_score_events.py b/tests/test_score_events/test_score_events.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_events/test_score_events.py +++ b/tests/test_score_events/test_score_events.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_fission/test_score_fission.py b/tests/test_score_fission/test_score_fission.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_fission/test_score_fission.py +++ b/tests/test_score_fission/test_score_fission.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_flux/test_score_flux.py b/tests/test_score_flux/test_score_flux.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_flux/test_score_flux.py +++ b/tests/test_score_flux/test_score_flux.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_kappafission/test_score_kappafission.py b/tests/test_score_kappafission/test_score_kappafission.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_kappafission/test_score_kappafission.py +++ b/tests/test_score_kappafission/test_score_kappafission.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_nufission/test_score_nufission.py b/tests/test_score_nufission/test_score_nufission.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_nufission/test_score_nufission.py +++ b/tests/test_score_nufission/test_score_nufission.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_nuscatter/test_score_nuscatter.py b/tests/test_score_nuscatter/test_score_nuscatter.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_nuscatter/test_score_nuscatter.py +++ b/tests/test_score_nuscatter/test_score_nuscatter.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_scatter/test_score_scatter.py b/tests/test_score_scatter/test_score_scatter.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_scatter/test_score_scatter.py +++ b/tests/test_score_scatter/test_score_scatter.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_scatter_n/test_score_scatter_n.py b/tests/test_score_scatter_n/test_score_scatter_n.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_scatter_n/test_score_scatter_n.py +++ b/tests/test_score_scatter_n/test_score_scatter_n.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_scatter_pn/test_score_scatter_pn.py b/tests/test_score_scatter_pn/test_score_scatter_pn.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_scatter_pn/test_score_scatter_pn.py +++ b/tests/test_score_scatter_pn/test_score_scatter_pn.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_score_total/test_score_total.py b/tests/test_score_total/test_score_total.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_score_total/test_score_total.py +++ b/tests/test_score_total/test_score_total.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_seed/test_seed.py b/tests/test_seed/test_seed.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_seed/test_seed.py +++ b/tests/test_seed/test_seed.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_source_angle_mono/test_source_angle_mono.py b/tests/test_source_angle_mono/test_source_angle_mono.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_source_angle_mono/test_source_angle_mono.py +++ b/tests/test_source_angle_mono/test_source_angle_mono.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_source_energy_maxwell/test_source_energy_maxwell.py b/tests/test_source_energy_maxwell/test_source_energy_maxwell.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_source_energy_maxwell/test_source_energy_maxwell.py +++ b/tests/test_source_energy_maxwell/test_source_energy_maxwell.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_source_energy_mono/test_source_energy_mono.py b/tests/test_source_energy_mono/test_source_energy_mono.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_source_energy_mono/test_source_energy_mono.py +++ b/tests/test_source_energy_mono/test_source_energy_mono.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_source_file/test_source_file.py b/tests/test_source_file/test_source_file.py index 3eca852d57..1be4b92cf8 100644 --- a/tests/test_source_file/test_source_file.py +++ b/tests/test_source_file/test_source_file.py @@ -105,7 +105,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_source_point/test_source_point.py b/tests/test_source_point/test_source_point.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_source_point/test_source_point.py +++ b/tests/test_source_point/test_source_point.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_sourcepoint_batch/test_sourcepoint_batch.py b/tests/test_sourcepoint_batch/test_sourcepoint_batch.py index f62ddacf9e..e7fd49b40a 100644 --- a/tests/test_sourcepoint_batch/test_sourcepoint_batch.py +++ b/tests/test_sourcepoint_batch/test_sourcepoint_batch.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_sourcepoint_interval/test_sourcepoint_interval.py b/tests/test_sourcepoint_interval/test_sourcepoint_interval.py index 52aa3b2d24..d59b5261d4 100644 --- a/tests/test_sourcepoint_interval/test_sourcepoint_interval.py +++ b/tests/test_sourcepoint_interval/test_sourcepoint_interval.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_sourcepoint_latest/test_sourcepoint_latest.py b/tests/test_sourcepoint_latest/test_sourcepoint_latest.py index cdf6d560b4..858656e837 100644 --- a/tests/test_sourcepoint_latest/test_sourcepoint_latest.py +++ b/tests/test_sourcepoint_latest/test_sourcepoint_latest.py @@ -52,7 +52,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_sourcepoint_restart/test_sourcepoint_restart.py b/tests/test_sourcepoint_restart/test_sourcepoint_restart.py index a67f078da6..81b16255f7 100644 --- a/tests/test_sourcepoint_restart/test_sourcepoint_restart.py +++ b/tests/test_sourcepoint_restart/test_sourcepoint_restart.py @@ -129,7 +129,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_statepoint_batch/test_statepoint_batch.py b/tests/test_statepoint_batch/test_statepoint_batch.py index 7dbce32cc0..ea3993d10b 100644 --- a/tests/test_statepoint_batch/test_statepoint_batch.py +++ b/tests/test_statepoint_batch/test_statepoint_batch.py @@ -55,7 +55,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_statepoint_interval/test_statepoint_interval.py b/tests/test_statepoint_interval/test_statepoint_interval.py index de42fc4e3a..f80cc2dca2 100644 --- a/tests/test_statepoint_interval/test_statepoint_interval.py +++ b/tests/test_statepoint_interval/test_statepoint_interval.py @@ -64,7 +64,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_statepoint_restart/test_statepoint_restart.py b/tests/test_statepoint_restart/test_statepoint_restart.py index 8b0636d6da..06b982917b 100644 --- a/tests/test_statepoint_restart/test_statepoint_restart.py +++ b/tests/test_statepoint_restart/test_statepoint_restart.py @@ -118,7 +118,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py b/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py index b21720ef57..00e70444d0 100644 --- a/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py +++ b/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py @@ -52,7 +52,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_survival_biasing/test_survival_biasing.py b/tests/test_survival_biasing/test_survival_biasing.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_survival_biasing/test_survival_biasing.py +++ b/tests/test_survival_biasing/test_survival_biasing.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_tally_assumesep/test_tally_assumesep.py b/tests/test_tally_assumesep/test_tally_assumesep.py index 435cb80ebc..f2068f85f9 100644 --- a/tests/test_tally_assumesep/test_tally_assumesep.py +++ b/tests/test_tally_assumesep/test_tally_assumesep.py @@ -51,7 +51,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_trace/test_trace.py b/tests/test_trace/test_trace.py index d9511551ac..dae89b62b4 100644 --- a/tests/test_trace/test_trace.py +++ b/tests/test_trace/test_trace.py @@ -49,7 +49,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_track_output/test_track_output.py b/tests/test_track_output/test_track_output.py index 25c9449c51..d4670a1385 100644 --- a/tests/test_track_output/test_track_output.py +++ b/tests/test_track_output/test_track_output.py @@ -61,7 +61,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_translation/test_translation.py b/tests/test_translation/test_translation.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_translation/test_translation.py +++ b/tests/test_translation/test_translation.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_uniform_fs/test_uniform_fs.py b/tests/test_uniform_fs/test_uniform_fs.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_uniform_fs/test_uniform_fs.py +++ b/tests/test_uniform_fs/test_uniform_fs.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_universe/test_universe.py b/tests/test_universe/test_universe.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_universe/test_universe.py +++ b/tests/test_universe/test_universe.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests diff --git a/tests/test_void/test_void.py b/tests/test_void/test_void.py index 54733fb13c..ef2dceed89 100644 --- a/tests/test_void/test_void.py +++ b/tests/test_void/test_void.py @@ -47,7 +47,7 @@ def teardown(): if __name__ == '__main__': # test for openmc executable - if opts.exe == None: + if opts.exe is None: raise Exception('Must specify OpenMC executable from command line with --exe.') # run tests