diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-26 17:44:33 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-26 17:44:33 (GMT) |
commit | 79e4803b29b935c6fa008aef0c8c7fa4fd94a490 (patch) | |
tree | f5bd0a9b88ffc65ace6b1543bf7ba03e0e417ccb /Lib/test/test_float.py | |
parent | 2b7411df5ca0b6ef714377730fd4d94693f26abd (diff) | |
download | cpython-79e4803b29b935c6fa008aef0c8c7fa4fd94a490.zip cpython-79e4803b29b935c6fa008aef0c8c7fa4fd94a490.tar.gz cpython-79e4803b29b935c6fa008aef0c8c7fa4fd94a490.tar.bz2 |
remove test.support.have_unicode
Diffstat (limited to 'Lib/test/test_float.py')
-rw-r--r-- | Lib/test/test_float.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index d17400c..4078973 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -22,11 +22,10 @@ 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: - 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() - self.assertRaises(ValueError, float, unicode("1"*10000)) + 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() + self.assertRaises(ValueError, float, unicode("1"*10000)) @support.run_with_locale('LC_NUMERIC', 'fr_FR', 'de_DE') def test_float_with_comma(self): |