mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
7ede43ac26
Incorrect blank lines E302 and E303.
10 lines
323 B
Python
10 lines
323 B
Python
from pip.req import InstallRequirement
|
|
|
|
|
|
def test_url_with_query():
|
|
"""InstallRequirement should strip the fragment, but not the query."""
|
|
url = 'http://foo.com/?p=bar.git;a=snapshot;h=v0.1;sf=tgz'
|
|
fragment = '#egg=bar'
|
|
req = InstallRequirement.from_line(url + fragment)
|
|
|
|
assert req.url == url, req.url
|