From 8f2b88d01dea04e873970131c0440cbd12f66dc6 Mon Sep 17 00:00:00 2001 From: Melanie Clarke Date: Thu, 19 Dec 2024 09:15:00 -0500 Subject: [PATCH] Fix filename order in test --- jwst/pixel_replace/tests/test_pixel_replace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwst/pixel_replace/tests/test_pixel_replace.py b/jwst/pixel_replace/tests/test_pixel_replace.py index 92ec146967..dcf8c96fa5 100644 --- a/jwst/pixel_replace/tests/test_pixel_replace.py +++ b/jwst/pixel_replace/tests/test_pixel_replace.py @@ -268,7 +268,7 @@ def test_pixel_replace_container_names(tmp_cwd, input_model_function): assert model.meta.cal_step.pixel_replace == 'COMPLETE' result_files = glob(os.path.join(tmp_cwd, '*pixelreplacestep.fits')) - for i, file in enumerate(result_files): + for i, file in enumerate(sorted(result_files)): basename = os.path.basename(file) assert expected_name[i] == basename with datamodels.open(file) as model: