def METHOD_NAME(self, import_module_mock):
    """Ensure we replace our iterable arg with bad types, our handling is still happy"""
    import_module_mock.side_effect = Exception("This will never happen!")
    with self.assertRaises(TypeError):
        is_importable_on_platform(
            ".foo", "bar", ImportError, [1, 2, 3, 4], "Some message"
        )