summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_long.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-08-23 23:02:57 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-08-23 23:02:57 (GMT)
commita3653095286b46bf4d9530240cfb8efa0788543e (patch)
treed937da11805a0ed7705985c9cff44772e709bc0e /Lib/test/test_long.py
parent26c7fa355a129778d21a8cf973f852dd592b792b (diff)
downloadcpython-a3653095286b46bf4d9530240cfb8efa0788543e.zip
cpython-a3653095286b46bf4d9530240cfb8efa0788543e.tar.gz
cpython-a3653095286b46bf4d9530240cfb8efa0788543e.tar.bz2
Add a test for the new // operator too.
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r--Lib/test/test_long.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 60adb74..3b6081e 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -300,6 +300,10 @@ def test_auto_overflow():
got = x / y
checkit(x, '/', y)
+ expected = longx // longy
+ got = x // y
+ checkit(x, '//', y)
+
expected = divmod(longx, longy)
got = divmod(longx, longy)
checkit(x, 'divmod', y)