• Home
  • Raw
  • Download

Lines Matching refs:assertRaises

94         self.assertRaises(SyntaxError, eval, r""" '\x' """)
95 self.assertRaises(SyntaxError, eval, r""" '\x0' """)
96 self.assertRaises(SyntaxError, eval, r""" '\u' """)
97 self.assertRaises(SyntaxError, eval, r""" '\u0' """)
98 self.assertRaises(SyntaxError, eval, r""" '\u00' """)
99 self.assertRaises(SyntaxError, eval, r""" '\u000' """)
100 self.assertRaises(SyntaxError, eval, r""" '\U' """)
101 self.assertRaises(SyntaxError, eval, r""" '\U0' """)
102 self.assertRaises(SyntaxError, eval, r""" '\U00' """)
103 self.assertRaises(SyntaxError, eval, r""" '\U000' """)
104 self.assertRaises(SyntaxError, eval, r""" '\U0000' """)
105 self.assertRaises(SyntaxError, eval, r""" '\U00000' """)
106 self.assertRaises(SyntaxError, eval, r""" '\U000000' """)
107 self.assertRaises(SyntaxError, eval, r""" '\U0000000' """)
125 with self.assertRaises(SyntaxError) as cm:
149 self.assertRaises(SyntaxError, eval, """ b'\x81' """)
151 self.assertRaises(SyntaxError, eval, """ b'\u1881' """)
153 self.assertRaises(SyntaxError, eval, """ b'\U0001d120' """)
156 self.assertRaises(SyntaxError, eval, r""" b'\x' """)
157 self.assertRaises(SyntaxError, eval, r""" b'\x0' """)
176 with self.assertRaises(SyntaxError) as cm:
193 self.assertRaises(SyntaxError, eval, """ br'\x81' """)
194 self.assertRaises(SyntaxError, eval, """ rb'\x81' """)
197 self.assertRaises(SyntaxError, eval, """ br'\u1881' """)
198 self.assertRaises(SyntaxError, eval, """ rb'\u1881' """)
201 self.assertRaises(SyntaxError, eval, """ br'\U0001d120' """)
202 self.assertRaises(SyntaxError, eval, """ rb'\U0001d120' """)
203 self.assertRaises(SyntaxError, eval, """ bb'' """)
204 self.assertRaises(SyntaxError, eval, """ rr'' """)
205 self.assertRaises(SyntaxError, eval, """ brr'' """)
206 self.assertRaises(SyntaxError, eval, """ bbr'' """)
207 self.assertRaises(SyntaxError, eval, """ rrb'' """)
208 self.assertRaises(SyntaxError, eval, """ rbb'' """)
214 self.assertRaises(SyntaxError, eval, """ ur'' """)
215 self.assertRaises(SyntaxError, eval, """ ru'' """)
216 self.assertRaises(SyntaxError, eval, """ bu'' """)
217 self.assertRaises(SyntaxError, eval, """ ub'' """)
237 self.assertRaises(SyntaxError, self.check_encoding, "utf-8", extra)