[pypy-svn] r78488 - pypy/branch/fast-forward/pypy/module/_hashlib/test
afa at codespeak.net
afa at codespeak.net
Fri Oct 29 22:40:52 CEST 2010
Author: afa
Date: Fri Oct 29 22:40:51 2010
New Revision: 78488
Modified:
pypy/branch/fast-forward/pypy/module/_hashlib/test/test_hashlib.py
Log:
Fix test. hum
Modified: pypy/branch/fast-forward/pypy/module/_hashlib/test/test_hashlib.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_hashlib/test/test_hashlib.py (original)
+++ pypy/branch/fast-forward/pypy/module/_hashlib/test/test_hashlib.py Fri Oct 29 22:40:51 2010
@@ -7,7 +7,7 @@
def test_simple(self):
import _hashlib
- assert isinstance(_hashlib.new('md5'), _hashlib.HASH)
+ assert _hashlib.new('md5').__class__.__name__ == 'HASH'
assert len(_hashlib.new('md5').hexdigest()) == 32
def test_attributes(self):
@@ -59,5 +59,5 @@
def test_unicode(self):
import _hashlib
- assert isinstance(_hashlib.new('sha1', u'xxx'), _hashlib.HASH)
+ assert _hashlib.new('sha1', u'xxx').__class__.__name__ == 'HASH'
More information about the Pypy-commit
mailing list