def failure_packages(self, failure_index=None):
phase, _ = self._get_failed_phase(failure_index)<EOL>fr = phase.failure_reason<EOL>return fr.involved_requirements() if fr else None<EOL>
Get packages involved in a failure.

        Args:
            failure_index: See `failure_reason`.

        Returns:
            A list of Requirement objects.