def match(self, data=None, timeout=None): # pylint:disable=invalid-name self.invocations.append((data, timeout)) if len(self.invocations) >= 3: raise yara.Error("internal error: 30") return [FakeMatch("test_rule_%d" % len(self.invocations))]
def match(data): raise yara.Error()