Lines Matching refs:SyntaxError
74 self.assertRaises(SyntaxError, timeit.Timer, stmt='return')
75 self.assertRaises(SyntaxError, timeit.Timer, stmt='yield')
76 self.assertRaises(SyntaxError, timeit.Timer, stmt='yield from ()')
77 self.assertRaises(SyntaxError, timeit.Timer, stmt='break')
78 self.assertRaises(SyntaxError, timeit.Timer, stmt='continue')
79 self.assertRaises(SyntaxError, timeit.Timer, stmt='from timeit import *')
80 self.assertRaises(SyntaxError, timeit.Timer, stmt=' pass')
81 self.assertRaises(SyntaxError, timeit.Timer,
86 self.assertRaises(SyntaxError, timeit.Timer, setup='return')
87 self.assertRaises(SyntaxError, timeit.Timer, setup='yield')
88 self.assertRaises(SyntaxError, timeit.Timer, setup='yield from ()')
89 self.assertRaises(SyntaxError, timeit.Timer, setup='break')
90 self.assertRaises(SyntaxError, timeit.Timer, setup='continue')
91 self.assertRaises(SyntaxError, timeit.Timer, setup='from timeit import *')
92 self.assertRaises(SyntaxError, timeit.Timer, setup=' pass')