import unittest [docs]class TestCase(unittest.TestCase): [docs] def setUp(self): import warnings # Must turn off warnings in the test function warnings.simplefilter("ignore") super().setUp()