Lines Matching refs:assertRaisesRegex
10 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
16 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
22 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
28 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
34 with self.assertRaisesRegex(SyntaxError, "cannot use assignment expressions with tuple"):
40 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
46 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
52 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
58 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
64 with self.assertRaisesRegex(SyntaxError,
71 with self.assertRaisesRegex(SyntaxError,
78 with self.assertRaisesRegex(SyntaxError,
85 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
91 with self.assertRaisesRegex(SyntaxError,
98 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
104 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
112 with self.assertRaisesRegex(SyntaxError,
130 with self.assertRaisesRegex(SyntaxError, msg):
141 with self.assertRaisesRegex(SyntaxError, msg):
143 with self.assertRaisesRegex(SyntaxError, msg):
145 with self.assertRaisesRegex(SyntaxError, msg):
163 with self.assertRaisesRegex(SyntaxError, msg):
165 with self.assertRaisesRegex(SyntaxError, msg):
167 with self.assertRaisesRegex(SyntaxError, msg):
184 with self.assertRaisesRegex(SyntaxError, msg):
195 with self.assertRaisesRegex(SyntaxError, msg):
197 with self.assertRaisesRegex(SyntaxError, msg):
199 with self.assertRaisesRegex(SyntaxError, msg):
217 with self.assertRaisesRegex(SyntaxError, msg):
219 with self.assertRaisesRegex(SyntaxError, msg):
221 with self.assertRaisesRegex(SyntaxError, msg):
336 with self.assertRaisesRegex(NameError, "name 'a' is not defined"):