summaryrefslogtreecommitdiff
path: root/Lib/test/test_fractions.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-03 22:07:57 +0000
committerGeorg Brandl <georg@python.org>2009-01-03 22:07:57 +0000
commit273856ea0797518ef60241371be3c724533bfca2 (patch)
treec9a1280be5eaa74c60bb14cafce97e9579495d17 /Lib/test/test_fractions.py
parente0c8d2159d46a9e4beb8793d325d440be1c4a202 (diff)
downloadcpython-273856ea0797518ef60241371be3c724533bfca2.tar.gz
Manually merge r68096,68189 from 3.0 branch.
Diffstat (limited to 'Lib/test/test_fractions.py')
-rw-r--r--Lib/test/test_fractions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_fractions.py b/Lib/test/test_fractions.py
index 4fadf6caa4..6851d2d313 100644
--- a/Lib/test/test_fractions.py
+++ b/Lib/test/test_fractions.py
@@ -136,6 +136,8 @@ class FractionTest(unittest.TestCase):
def testFromFloat(self):
self.assertRaises(TypeError, F.from_float, 3+4j)
self.assertEquals((10, 1), _components(F.from_float(10)))
+ bigint = 1234567890123456789
+ self.assertEquals((bigint, 1), _components(F.from_float(bigint)))
self.assertEquals((0, 1), _components(F.from_float(-0.0)))
self.assertEquals((10, 1), _components(F.from_float(10.0)))
self.assertEquals((-5, 2), _components(F.from_float(-2.5)))