Commit 9caf92ac authored by Jason R. Coombs's avatar Jason R. Coombs

Update test to reflect the copy of the hash name stored because pypy doesn't...

Update test to reflect the copy of the hash name stored because pypy doesn't implement the undocumented .name attribute on HASH objects.
parent 99c854fe
...@@ -169,11 +169,7 @@ class TestContentCheckers(unittest.TestCase): ...@@ -169,11 +169,7 @@ class TestContentCheckers(unittest.TestCase):
def test_get_hash_name_md5(self): def test_get_hash_name_md5(self):
checker = setuptools.package_index.HashChecker.from_url( checker = setuptools.package_index.HashChecker.from_url(
'http://foo/bar#md5=f12895fdffbd45007040d2e44df98478') 'http://foo/bar#md5=f12895fdffbd45007040d2e44df98478')
if sys.version_info >= (2,5): self.assertEqual(checker.hash_name, 'md5')
self.assertEqual(checker.hash.name, 'md5')
else:
# Python 2.4 compatability
self.assertEqual(checker._get_hash_name(), 'md5')
def test_report(self): def test_report(self):
checker = setuptools.package_index.HashChecker.from_url( checker = setuptools.package_index.HashChecker.from_url(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment