diff options
author | Georg Brandl <georg@python.org> | 2009-01-03 22:03:11 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-01-03 22:03:11 +0000 |
commit | fe427895b58769840f1f61a82ea0cdfe55150347 (patch) | |
tree | ba6fc9493239a122199292caada1e9345d26e8f6 /Lib/test/test_fractions.py | |
parent | c63785db867804de8b676ddddcc90c3fcbf2c111 (diff) | |
download | cpython-git-fe427895b58769840f1f61a82ea0cdfe55150347.tar.gz |
Manually merge r68095,68186,68187,68188,68190 from 2.6 branch.
Diffstat (limited to 'Lib/test/test_fractions.py')
-rw-r--r-- | Lib/test/test_fractions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_fractions.py b/Lib/test/test_fractions.py index 979fef75cd..a6c3c32cb0 100644 --- a/Lib/test/test_fractions.py +++ b/Lib/test/test_fractions.py @@ -139,6 +139,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))) |