diff --git a/lib/iris/_representation.py b/lib/iris/_representation.py index e8cb1effd5..6d0e6e2896 100644 --- a/lib/iris/_representation.py +++ b/lib/iris/_representation.py @@ -311,7 +311,7 @@ def add_scalar_section(section_class, title, *args): "Scalar cell measures:", scalar_cell_measures, ) - add_scalar_section(AttributeSection, "Attributes:", cube.attributes) add_scalar_section( CellMethodSection, "Cell methods:", cube.cell_methods ) + add_scalar_section(AttributeSection, "Attributes:", cube.attributes) diff --git a/lib/iris/tests/unit/representation/test_representation.py b/lib/iris/tests/unit/representation/test_representation.py index 238772a10c..c12088a0ba 100644 --- a/lib/iris/tests/unit/representation/test_representation.py +++ b/lib/iris/tests/unit/representation/test_representation.py @@ -72,8 +72,8 @@ def test_blank_cube(self): expected_scalar_sections = [ "Scalar coordinates:", "Scalar cell measures:", - "Attributes:", "Cell methods:", + "Attributes:", ] self.assertEqual(