mirror of https://github.com/python/cpython.git
Fiddle test_augassign so it passes under -Qnew.
This commit is contained in:
parent
f582b82fe9
commit
e93e477215
Lib/test
|
@ -217,9 +217,16 @@ def __ilshift__(self, val):
|
|||
1 * x
|
||||
x *= 1
|
||||
|
||||
x / 1
|
||||
1 / x
|
||||
x /= 1
|
||||
if 1/2 == 0:
|
||||
x / 1
|
||||
1 / x
|
||||
x /= 1
|
||||
else:
|
||||
# True division is in effect, so "/" doesn't map to __div__ etc;
|
||||
# but the canned expected-output file requires that those get called.
|
||||
x.__div__(1)
|
||||
x.__rdiv__(1)
|
||||
x.__idiv__(1)
|
||||
|
||||
x // 1
|
||||
1 // x
|
||||
|
|
Loading…
Reference in New Issue