summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-12-11 19:20:15 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-12-11 19:20:15 (GMT)
commite93e47721582804e0d697d851eb7e6e6b6544be2 (patch)
treea4a2af8b8f5f3fbee936bc1421eaa133fae100e6 /Lib
parentf582b82fe9ae4c0394ed4f6b281aa8b4ca224617 (diff)
downloadcpython-e93e47721582804e0d697d851eb7e6e6b6544be2.zip
cpython-e93e47721582804e0d697d851eb7e6e6b6544be2.tar.gz
cpython-e93e47721582804e0d697d851eb7e6e6b6544be2.tar.bz2
Fiddle test_augassign so it passes under -Qnew.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_augassign.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/Lib/test/test_augassign.py b/Lib/test/test_augassign.py
index c372b9a..8a8f00d 100644
--- a/Lib/test/test_augassign.py
+++ b/Lib/test/test_augassign.py
@@ -217,9 +217,16 @@ x * 1
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