diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-22 22:34:04 +0200 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-22 22:34:04 +0200 |
commit | 9caf92acf6972f283f368aa42ed186aafb28502b (patch) | |
tree | 1a77ea93ba9a8c8afa6756fcc721ee1cfa6c3413 | |
parent | 99c854fe2766858883ef6a248462627ba137ca14 (diff) | |
download | external_python_setuptools-9caf92acf6972f283f368aa42ed186aafb28502b.tar.gz external_python_setuptools-9caf92acf6972f283f368aa42ed186aafb28502b.tar.bz2 external_python_setuptools-9caf92acf6972f283f368aa42ed186aafb28502b.zip |
Update test to reflect the copy of the hash name stored because pypy doesn't implement the undocumented .name attribute on HASH objects.
-rw-r--r-- | setuptools/tests/test_packageindex.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py index 3791914a..7f5dc585 100644 --- a/setuptools/tests/test_packageindex.py +++ b/setuptools/tests/test_packageindex.py @@ -169,11 +169,7 @@ class TestContentCheckers(unittest.TestCase): 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( |