From bae82b8ae55b081533abfb9a387c04a04f3ff6b6 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Wed, 16 Jan 2008 00:20:32 +0000 Subject: [PATCH] __floordiv__ returns an int in 3.0. --- Lib/test/test_rational.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_rational.py b/Lib/test/test_rational.py index a8e1737da7d..cd8c709bd6b 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)