Lines Matching refs:error
218 def check(test, error=False):
220 if error:
232 check(f"{num}and x", error=(num == "0xf"))
233 check(f"{num}or x", error=(num == "0"))
237 check(f"x if {num}else y", error=(num == "0xf"))
239 check(f"{num}spam", error=True)
247 warnings.simplefilter('error', SyntaxWarning)
843 # Cases where we want the custom error
1298 # If SyntaxWarning is configured to be an error, it actually raises a
1302 warnings.simplefilter('error', SyntaxWarning)
1482 warnings.simplefilter('error', SyntaxWarning)
1562 warnings.simplefilter('error', SyntaxWarning)