Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hashin.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def expand_python_version(version):
'cp{major}{minor}',
'py{major}',
'py{major}.{minor}',
'py{major}{minor}',
'source',
'py2.py3',
]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,9 +923,9 @@ def test_release_url_metadata_python(self):

def test_expand_python_version(self):
self.assertEqual(sorted(hashin.expand_python_version('2.7')),
['2.7', 'cp27', 'py2', 'py2.7', 'py2.py3', 'source'])
['2.7', 'cp27', 'py2', 'py2.7', 'py2.py3', 'py27', 'source'])
self.assertEqual(sorted(hashin.expand_python_version('3.5')),
['3.5', 'cp35', 'py2.py3', 'py3', 'py3.5', 'source'])
['3.5', 'cp35', 'py2.py3', 'py3', 'py3.5', 'py35', 'source'])

@cleanup_tmpdir('hashin*')
@mock.patch('hashin.urlopen')
Expand Down