Commits

Jason R. Coombs  committed 41daaab

Update test to reflect the copy of the hash name stored because pypy doesn't implement the undocumented .name attribute on HASH objects.

  • Participants
  • Parent commits 5e6ceac

Comments (0)

Files changed (1)

File setuptools/tests/test_packageindex.py

     def test_get_hash_name_md5(self):
         checker = setuptools.package_index.HashChecker.from_url(
             'http://foo/bar#md5=f12895fdffbd45007040d2e44df98478')
-        if sys.version_info >= (2,5):
-            self.assertEqual(checker.hash.name, 'md5')
-        else:
-            # Python 2.4 compatability
-            self.assertEqual(checker._get_hash_name(), 'md5')
+        self.assertEqual(checker.hash_name, 'md5')
 
     def test_report(self):
         checker = setuptools.package_index.HashChecker.from_url(