def METHOD_NAME(self, tmp_path: Path) -> None:
    """Custom .cfg files without [tool:pytest] section are not considered for configuration"""
    fn = tmp_path / "custom.cfg"
    fn.write_text("[custom]", encoding="utf-8")
    assert load_config_dict_from_file(fn) is None