• Home
  • Raw
  • Download

Lines Matching refs:SyntaxError

429         self.assertAllRaise(SyntaxError,
441 self.assertAllRaise(SyntaxError, 'f-string: unterminated string',
449 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' "
453 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\)' "
457 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\]' "
461 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' "
465 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' "
469 self.assertRaises(SyntaxError, eval, "f'{" + "("*500 + "}'")
533 self.assertAllRaise(SyntaxError, "f-string: expecting '}'",
543 self.assertAllRaise(SyntaxError, "f-string expression part cannot include '#'",
548 self.assertAllRaise(SyntaxError, r"f-string: unmatched '\)'",
593 self.assertAllRaise(SyntaxError, "f-string: expecting '}'",
599 self.assertAllRaise(SyntaxError, "f-string: invalid syntax",
604 self.assertAllRaise(SyntaxError, "f-string: expressions nested too deeply",
609 self.assertAllRaise(SyntaxError, 'f-string: invalid conversion character',
627 self.assertAllRaise(SyntaxError, 'f-string: empty expression not allowed',
661 self.assertAllRaise(SyntaxError, r"invalid non-printable character U\+00A0",
673 self.assertAllRaise(SyntaxError, 'f-string: invalid syntax',
678 self.assertAllRaise(SyntaxError, r"f-string: unmatched '\)'",
682 self.assertAllRaise(SyntaxError, 'unterminated string literal',
686 self.assertAllRaise(SyntaxError, "invalid syntax",
747 …self.assertAllRaise(SyntaxError, r"\(unicode error\) 'unicodeescape' codec can't decode bytes in p…
760 self.assertAllRaise(SyntaxError, 'f-string expression part cannot include a backslash',
794 self.assertAllRaise(SyntaxError, 'f-string: invalid syntax',
947 self.assertAllRaise(SyntaxError, 'invalid syntax',
993 self.assertAllRaise(SyntaxError, 'f-string: invalid conversion character',
1003 self.assertAllRaise(SyntaxError, "f-string: expecting '}'",
1011 self.assertAllRaise(SyntaxError, r'invalid syntax',
1018 self.assertAllRaise(SyntaxError, 'invalid syntax',
1024 self.assertAllRaise(SyntaxError, "f-string: single '}' is not allowed",
1037 self.assertAllRaise(SyntaxError, "f-string: expecting '}'",
1242 self.assertRaises(SyntaxError, eval, "f'{C=]'")
1273 with self.assertRaisesRegex(SyntaxError, "f-string: invalid syntax"):
1298 with self.assertRaisesRegex(SyntaxError, error_msg):
1302 with self.assertRaisesRegex(SyntaxError, error_msg):