def test_override_with_non_string(self):
        testcfg = "/tmp/invalid_file"
        result = None
        with pytest.raises(Exception) as excinfo:
            result = config.load_config(config_file_override=[testcfg])
        assert result is None
        assert "must be a string" in str(excinfo.value)
dataset/ETHPy150Open major/supernova/tests/test_config.py/TestConfig.test_override_with_non_string/original