From bf56fe58953d80d745741c211c08f643d6a334cb Mon Sep 17 00:00:00 2001 From: Ruth Comer <10599679+rcomer@users.noreply.github.com> Date: Wed, 24 Aug 2022 13:07:08 +0100 Subject: [PATCH] Remove `setUpClass` from Iris tests. (#4927) * remove IrisTest.setUpClass * whatsnew --- docs/src/whatsnew/latest.rst | 3 ++- lib/iris/tests/__init__.py | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/src/whatsnew/latest.rst b/docs/src/whatsnew/latest.rst index 1790f51daad..c388c5fb7ba 100644 --- a/docs/src/whatsnew/latest.rst +++ b/docs/src/whatsnew/latest.rst @@ -79,7 +79,8 @@ This document explains the changes made to Iris for this release 💼 Internal =========== -#. N/A +#. `@rcomer`_ removed the obsolete ``setUpClass`` method from Iris testing. + (:pull:`4927`) .. comment diff --git a/lib/iris/tests/__init__.py b/lib/iris/tests/__init__.py index a556cb62311..4840de8cdb1 100644 --- a/lib/iris/tests/__init__.py +++ b/lib/iris/tests/__init__.py @@ -213,11 +213,6 @@ class IrisTest_nometa(unittest.TestCase): _assertion_counts = collections.defaultdict(int) - @classmethod - def setUpClass(cls): - # Ensure that the CF profile if turned-off for testing. - iris.site_configuration["cf_profile"] = None - def _assert_str_same( self, reference_str,