Skip to content

Commit

Permalink
Remove setUpClass from Iris tests. (SciTools#4927)
Browse files Browse the repository at this point in the history
* remove IrisTest.setUpClass

* whatsnew
  • Loading branch information
rcomer authored and pp-mo committed Sep 26, 2022
1 parent 5b17dbc commit 75924af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/src/whatsnew/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions lib/iris/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 75924af

Please sign in to comment.