@property
    def tests(self):
        res = [x for x in self._tests if
                match_patterns(self.patterns, x["name"], default=True)]
        res = [x for x in res if not
                match_patterns(self.excludes, x["name"], default=False)]
        # Perf tests are run alone
        res = [x for x in res if x.get("perf", False) == self.perf]
        # But nightly tests are run along with the normal tests
        if not self.nightly:
            res = [x for x in res if x.get("nightly", False) is False]
        if self.last_failed:
            failed_names = self.get_last_failed_names()
            res = [x for x in res if failed_names in x["name"]]
            if not res:
                ui.warning("No failing tests found")
        return res
dataset/ETHPy150Open aldebaran/qibuild/python/qitest/runner.py/TestSuiteRunner.tests/swapped operands of `in`