summaryrefslogtreecommitdiff
path: root/Lib/test/test_unicodedata.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-04-30 08:57:35 +0000
committerGeorg Brandl <georg@python.org>2006-04-30 08:57:35 +0000
commitbffb0bc064c25032264037e3c0405d7ab0d3c149 (patch)
tree402405c1b4a25a822a4174376002b348299b54fd /Lib/test/test_unicodedata.py
parentfa42bd7af429a909e3e964ffc8dcfa457e007ac8 (diff)
downloadcpython-git-bffb0bc064c25032264037e3c0405d7ab0d3c149.tar.gz
In stdlib, use hashlib instead of deprecated md5 and sha modules.
Diffstat (limited to 'Lib/test/test_unicodedata.py')
-rw-r--r--Lib/test/test_unicodedata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index f84caad537..c4b5cf3763 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -6,7 +6,7 @@
"""#"
import unittest, test.test_support
-import sha
+import hashlib
encoding = 'utf-8'
@@ -19,7 +19,7 @@ class UnicodeMethodsTest(unittest.TestCase):
expectedchecksum = 'a6555cd209d960dcfa17bfdce0c96d91cfa9a9ba'
def test_method_checksum(self):
- h = sha.sha()
+ h = hashlib.sha1()
for i in range(65536):
char = unichr(i)
data = [
@@ -79,7 +79,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest):
def test_function_checksum(self):
data = []
- h = sha.sha()
+ h = hashlib.sha1()
for i in range(0x10000):
char = unichr(i)