mirror of
https://github.com/python/cpython.git
synced 2026-01-03 14:02:21 +00:00
Add (equally superficial) >>=/<<= test in the process. Relies on floats that should be extremely close to the int '6' printing as '6.0', but I believe that's a valid assumption ;P
54 lines
721 B
Text
54 lines
721 B
Text
test_augassign
|
|
6.0
|
|
6
|
|
[6.0]
|
|
6
|
|
6.0
|
|
6
|
|
[1, 2, 3, 4, 1, 2, 3, 4]
|
|
[1, 2, 1, 2, 3]
|
|
True
|
|
True
|
|
True
|
|
11
|
|
True
|
|
12
|
|
True
|
|
True
|
|
13
|
|
__add__ called
|
|
__radd__ called
|
|
__iadd__ called
|
|
__sub__ called
|
|
__rsub__ called
|
|
__isub__ called
|
|
__mul__ called
|
|
__rmul__ called
|
|
__imul__ called
|
|
__truediv__ called
|
|
__rtruediv__ called
|
|
__itruediv__ called
|
|
__floordiv__ called
|
|
__rfloordiv__ called
|
|
__ifloordiv__ called
|
|
__mod__ called
|
|
__rmod__ called
|
|
__imod__ called
|
|
__pow__ called
|
|
__rpow__ called
|
|
__ipow__ called
|
|
__or__ called
|
|
__ror__ called
|
|
__ior__ called
|
|
__and__ called
|
|
__rand__ called
|
|
__iand__ called
|
|
__xor__ called
|
|
__rxor__ called
|
|
__ixor__ called
|
|
__rshift__ called
|
|
__rrshift__ called
|
|
__irshift__ called
|
|
__lshift__ called
|
|
__rlshift__ called
|
|
__ilshift__ called
|