Lines Matching defs:fail
74 def fail(
126 self.fail(" ".join(message), lineno)
131 """Called if the parser encounters an unknown tag. Tries to fail
169 self.fail("tag name expected", token.lineno)
185 # from the stack so that the unknown tag fail function can
304 self.fail(
321 self.fail("Required blocks can only contain comments or whitespace")
386 self.fail(
416 self.fail("non-default argument follows default argument")
430 self.fail("expected call", node.lineno)
509 self.fail(
677 self.fail(f"unexpected {describe_token(token)!r}", token.lineno)
739 self.fail(
815 self.fail("expected name or number", attr_token.lineno)
830 self.fail("expected subscript expression", token.lineno)
874 self.fail("invalid syntax for function call expression", token.lineno)
968 self.fail("You cannot chain multiple tests with is")