diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-09-06 20:53:51 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-09-06 20:53:51 (GMT) |
commit | feb8cade4df1eb0e8eaeb8e2661812fdf5edaa17 (patch) | |
tree | dcace98eb296dcf6a21dbd1292a05c21a866e70f /Lib/test | |
parent | cd52023e6fedbe4d5a07b4ded8bfbb4939e66953 (diff) | |
download | cpython-feb8cade4df1eb0e8eaeb8e2661812fdf5edaa17.zip cpython-feb8cade4df1eb0e8eaeb8e2661812fdf5edaa17.tar.gz cpython-feb8cade4df1eb0e8eaeb8e2661812fdf5edaa17.tar.bz2 |
#3796: A test class was not run in test_float.
Reviewed by Benjamin.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_float.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index ab791a3..5804802 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -5,6 +5,7 @@ from test import test_support import math from math import isinf, isnan, copysign, ldexp import operator +import random, fractions INF = float("inf") NAN = float("nan") @@ -23,7 +24,7 @@ class GeneralFloatCases(unittest.TestCase): self.assertRaises(ValueError, float, "+-3.14") self.assertRaises(ValueError, float, "-+3.14") self.assertRaises(ValueError, float, "--3.14") - if have_unicode: + if test_support.have_unicode: self.assertEqual(float(unicode(" 3.14 ")), 3.14) self.assertEqual(float(unicode(" \u0663.\u0661\u0664 ",'raw-unicode-escape')), 3.14) # Implementation limitation in PyFloat_FromString() @@ -736,6 +737,7 @@ class HexFloatTestCase(unittest.TestCase): def test_main(): test_support.run_unittest( + GeneralFloatCases, FormatFunctionsTestCase, UnknownFormatTestCase, IEEEFormatTestCase, |