summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_float.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-26 17:44:33 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-26 17:44:33 (GMT)
commit79e4803b29b935c6fa008aef0c8c7fa4fd94a490 (patch)
treef5bd0a9b88ffc65ace6b1543bf7ba03e0e417ccb /Lib/test/test_float.py
parent2b7411df5ca0b6ef714377730fd4d94693f26abd (diff)
downloadcpython-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.py9
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):