Skip to content

Commit

Permalink
Make use of Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 27, 2020
1 parent e251711 commit 541d7aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions test/deprecated/test_parse_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ def test_escaped_text():
<a href="https://test.nil/simple/files/project-0.1.0-p&#xFF;42-none-any.whl">project-0.1.0-p&#xFF;42-none-any.whl</a>
'''))
assert links == [(
u'project-0.1.0-p\xFF42-none-any.whl',
u"https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
'project-0.1.0-p\xFF42-none-any.whl',
"https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
{
"href": u"https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
"href": "https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
},
)]

Expand All @@ -259,9 +259,9 @@ def test_named_escaped_text():
<a href="https://test.nil/simple/files/project-0.1.0-p&yuml;42-none-any.whl">project-0.1.0-p&yuml;42-none-any.whl</a>
'''))
assert links == [(
u'project-0.1.0-p\xFF42-none-any.whl',
u"https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
'project-0.1.0-p\xFF42-none-any.whl',
"https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
{
"href": u"https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
"href": "https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
},
)]
8 changes: 4 additions & 4 deletions test/deprecated/test_pypisimple.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ def test_utf8_declarations(content_type, body_decl):
files = simple.get_project_files('project')
assert files == [
DistributionPackage(
filename=u'project-0.1.0-p\xFF42-none-any.whl',
filename='project-0.1.0-p\xFF42-none-any.whl',
project='project',
version='0.1.0',
package_type='wheel',
url=u"https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
url="https://test.nil/simple/files/project-0.1.0-p\xFF42-none-any.whl",
requires_python=None,
has_sig=None,
yanked=None,
Expand Down Expand Up @@ -233,11 +233,11 @@ def test_latin2_declarations(content_type, body_decl):
files = simple.get_project_files('project')
assert files == [
DistributionPackage(
filename=u'project-0.1.0-p\u0102\u017C42-none-any.whl',
filename='project-0.1.0-p\u0102\u017C42-none-any.whl',
project='project',
version='0.1.0',
package_type='wheel',
url=u"https://test.nil/simple/files/project-0.1.0-p\u0102\u017C42-none-any.whl",
url="https://test.nil/simple/files/project-0.1.0-p\u0102\u017C42-none-any.whl",
requires_python=None,
has_sig=None,
yanked=None,
Expand Down
4 changes: 2 additions & 2 deletions test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ def test_latin2_declarations(content_type, body_decl):
project='project',
packages=[
DistributionPackage(
filename=u'project-0.1.0-p\u0102\u017C42-none-any.whl',
filename='project-0.1.0-p\u0102\u017C42-none-any.whl',
project='project',
version='0.1.0',
package_type='wheel',
url=u"https://test.nil/simple/files/project-0.1.0-p\u0102\u017C42-none-any.whl",
url="https://test.nil/simple/files/project-0.1.0-p\u0102\u017C42-none-any.whl",
requires_python=None,
has_sig=None,
yanked=None,
Expand Down

0 comments on commit 541d7aa

Please sign in to comment.