@classmethod
    def tearDownClass(cls):
        super(NoYamlSerializerTestCase, cls).tearDownClass()

        importlib.import_module = cls._import_module_mock._import_module

        # clear out cached serializers to clean out BadSerializer instances
        serializers._serializers = {}
Puts yaml back if necessary
dataset/ETHPy150Open django/django/tests/serializers/test_yaml.py/NoYamlSerializerTestCase.tearDownClass