Lines Matching refs:assertAllRaise
29 def assertAllRaise(self, exception_type, regex, error_strings):
458 self.assertAllRaise(SyntaxError,
470 self.assertAllRaise(SyntaxError, 'f-string: unterminated string',
478 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' "
482 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\)' "
486 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\]' "
490 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' "
494 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' "
531 self.assertAllRaise(TypeError, 'unhashable type',
562 self.assertAllRaise(SyntaxError, "f-string: expecting '}'",
572 self.assertAllRaise(SyntaxError, "f-string expression part cannot include '#'",
577 self.assertAllRaise(SyntaxError, r"f-string: unmatched '\)'",
622 self.assertAllRaise(SyntaxError, "f-string: expecting '}'",
628 self.assertAllRaise(SyntaxError, "f-string: invalid syntax",
633 self.assertAllRaise(SyntaxError, "f-string: expressions nested too deeply",
638 self.assertAllRaise(SyntaxError, 'f-string: invalid conversion character',
656 self.assertAllRaise(SyntaxError, 'f-string: empty expression not allowed',
669 self.assertAllRaise(SyntaxError, "f-string: expression required before '!'",
690 self.assertAllRaise(SyntaxError, "f-string: expression required before ':'",
698 self.assertAllRaise(SyntaxError, "f-string: expression required before '='",
708 self.assertAllRaise(SyntaxError, r"invalid non-printable character U\+00A0",
720 self.assertAllRaise(SyntaxError, 'f-string: invalid syntax',
725 self.assertAllRaise(SyntaxError, r"f-string: unmatched '\)'",
729 self.assertAllRaise(SyntaxError, 'unterminated string literal',
733 self.assertAllRaise(SyntaxError, "invalid syntax",
794 self.assertAllRaise(SyntaxError, r"\(unicode error\) 'unicodeescape' codec can't decode bytes in position .*: malformed \\N character escape",
811 self.assertAllRaise(SyntaxError, 'f-string expression part cannot include a backslash',
845 self.assertAllRaise(SyntaxError, 'f-string: invalid syntax',
998 self.assertAllRaise(SyntaxError, 'invalid syntax',
1044 self.assertAllRaise(SyntaxError, 'f-string: invalid conversion character',
1054 self.assertAllRaise(SyntaxError, "f-string: expecting '}'",
1062 self.assertAllRaise(SyntaxError, r'invalid syntax',
1069 self.assertAllRaise(SyntaxError, 'invalid syntax',
1075 self.assertAllRaise(SyntaxError, "f-string: single '}' is not allowed",
1088 self.assertAllRaise(SyntaxError, "f-string: expecting '}'",
1172 self.assertAllRaise(TypeError, 'unsupported',
1176 self.assertAllRaise(ValueError, 'Unknown format code',