summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2008-01-16 00:20:32 (GMT)
committerJeffrey Yasskin <jyasskin@gmail.com>2008-01-16 00:20:32 (GMT)
commitbae82b8ae55b081533abfb9a387c04a04f3ff6b6 (patch)
tree2395172ae38ff9467f61d9731626e32018dec9da
parent7736b5becd273cb271c55fcce9155677a381c4f6 (diff)
downloadcpython-bae82b8ae55b081533abfb9a387c04a04f3ff6b6.zip
cpython-bae82b8ae55b081533abfb9a387c04a04f3ff6b6.tar.gz
cpython-bae82b8ae55b081533abfb9a387c04a04f3ff6b6.tar.bz2
__floordiv__ returns an int in 3.0.
-rw-r--r--Lib/test/test_rational.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_rational.py b/Lib/test/test_rational.py
index a8e1737..cd8c709 100644
--- a/Lib/test/test_rational.py
+++ b/Lib/test/test_rational.py
@@ -148,12 +148,10 @@ class RationalTest(unittest.TestCase):
self.assertTypedEquals(10.0 + 0j, (1.0 + 0j) / R(1, 10))
self.assertTypedEquals(0, R(1, 10) // 1)
- # XXX Jeffrey: why does this fail?
- ##self.assertTypedEquals(0.0, R(1, 10) // 1.0)
+ self.assertTypedEquals(0, R(1, 10) // 1.0)
self.assertTypedEquals(10, 1 // R(1, 10))
self.assertTypedEquals(10**23, 10**22 // R(1, 10))
- # XXX Jeffrey: why does this fail?
- ##self.assertTypedEquals(10.0, 1.0 // R(1, 10))
+ self.assertTypedEquals(10, 1.0 // R(1, 10))
self.assertTypedEquals(R(1, 10), R(1, 10) % 1)
self.assertTypedEquals(0.1, R(1, 10) % 1.0)