summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicodedata.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-08-04 20:56:28 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-08-04 20:56:28 (GMT)
commit388122d43b2b6bb41774d9680b9ad3bc05682f85 (patch)
tree4b3059b3dbd916fde44702e732f507788c433fbf /Lib/test/test_unicodedata.py
parentb6c50749207688902a6378958da474f7c31f179d (diff)
downloadcpython-388122d43b2b6bb41774d9680b9ad3bc05682f85.zip
cpython-388122d43b2b6bb41774d9680b9ad3bc05682f85.tar.gz
cpython-388122d43b2b6bb41774d9680b9ad3bc05682f85.tar.bz2
Issue #9337: Make float.__str__ identical to float.__repr__.
(And similarly for complex numbers.)
Diffstat (limited to 'Lib/test/test_unicodedata.py')
-rw-r--r--Lib/test/test_unicodedata.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index 59e6d39..b572261 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -80,8 +80,7 @@ class UnicodeDatabaseTest(unittest.TestCase):
class UnicodeFunctionsTest(UnicodeDatabaseTest):
# update this, if the database changes
- expectedchecksum = '6ccf1b1a36460d2694f9b0b0f0324942fe70ede6'
-
+ expectedchecksum = 'e89a6380093a00a7685ac7b92e7367d737fcb79b'
def test_function_checksum(self):
data = []
h = hashlib.sha1()
@@ -90,9 +89,9 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest):
char = chr(i)
data = [
# Properties
- str(self.db.digit(char, -1)),
- str(self.db.numeric(char, -1)),
- str(self.db.decimal(char, -1)),
+ format(self.db.digit(char, -1), '.12g'),
+ format(self.db.numeric(char, -1), '.12g'),
+ format(self.db.decimal(char, -1), '.12g'),
self.db.category(char),
self.db.bidirectional(char),
self.db.decomposition(char),