Skip to content

Commit 0d2f1f3

Browse files
committed
move gleam test to only run checks on rank 0
1 parent 43b533e commit 0d2f1f3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_run.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
pytestmark = pytest.mark.parallel(2)
3030

3131

32-
@pytest.fixture()
32+
@pytest.fixture
3333
def goto_tempdir(tmpdir):
3434
# Run test within temporary directory.
3535
newpath = str(tmpdir)
@@ -287,13 +287,13 @@ def test_run_gleam_uvsim(spectral_type):
287287
if pyuvsim.mpi.rank == 0:
288288
assert uv_out.telescope_name == "Triangle"
289289

290-
file_name = f"gleam_triangle_{spectral_type}.uvh5"
291-
uv_in = UVData.from_file(os.path.join(SIM_DATA_PATH, file_name))
292-
uv_in.use_future_array_shapes()
293-
# This just tests that we get the same answer as an earlier run, not that
294-
# the data are correct (that's covered in other tests)
295-
uv_out.history = uv_in.history
296-
assert uv_in == uv_out
290+
file_name = f"gleam_triangle_{spectral_type}.uvh5"
291+
uv_in = UVData.from_file(os.path.join(SIM_DATA_PATH, file_name))
292+
uv_in.use_future_array_shapes()
293+
# This just tests that we get the same answer as an earlier run, not that
294+
# the data are correct (that's covered in other tests)
295+
uv_out.history = uv_in.history
296+
assert uv_in == uv_out
297297

298298

299299
@pytest.mark.filterwarnings("ignore:The reference_frequency is aliased as `frequency`")

0 commit comments

Comments
 (0)