mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
remove test.support.have_unicode
This commit is contained in:
parent
2b7411df5c
commit
79e4803b29
4 changed files with 12 additions and 26 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue