Home | History | Annotate | Download | only in test

Lines Matching refs:BinOp

122   # BinOp
305 x = ast.BinOp()
315 x = ast.BinOp(n1, addop, n3)
320 x = ast.BinOp(1, 2, 3)
325 x = ast.BinOp(1, 2, 3, lineno=0)
332 self.assertRaises(TypeError, ast.BinOp, 1, 2)
334 self.assertRaises(TypeError, ast.BinOp, 1, 2, 3, 4)
336 self.assertRaises(TypeError, ast.BinOp, 1, 2, lineno=0)
338 self.assertRaises(TypeError, ast.BinOp, 1, 2, 3, 4, lineno=0)
341 x = ast.BinOp(left=1, op=2, right=3, lineno=0)
348 x = ast.BinOp(1, 2, 3, foobarbaz=42)
416 'Expression(body=BinOp(left=Num(n=1, lineno=1, col_offset=0), '
441 'Expression(body=BinOp(left=Num(n=1, lineno=4, col_offset=0), '
449 'Expression(body=BinOp(left=Num(n=1, lineno=4, col_offset=0), '
551 ('Interactive', [('Expr', (1, 0), ('BinOp', (1, 0), ('Num', (1, 0), 1), ('Add',), ('Num', (1, 2), 2)))]),
556 ('Expression', ('BinOp', (1, 0), ('Name', (1, 0), 'a', ('Load',)), ('Add',), ('Name', (1, 4), 'b', ('Load',)))),