Skip to content

Commit

Permalink
Update test to make the results consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 18, 2021
1 parent 84fd013 commit c87838e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def pkg_with_non_ascii_description(site_dir):
metadata_dir.mkdir()
metadata = metadata_dir / 'METADATA'
with metadata.open('w', encoding='utf-8') as fp:
fp.write('Description: pôrˈtend\n')
fp.write('Description: pôrˈtend')
return 'portend'

@staticmethod
Expand All @@ -150,7 +150,7 @@ def pkg_with_non_ascii_description_egg_info(site_dir):
pôrˈtend
"""
).lstrip()
).strip()
)
return 'portend'

Expand All @@ -162,7 +162,7 @@ def test_metadata_loads(self):
def test_metadata_loads_egg_info(self):
pkg_name = self.pkg_with_non_ascii_description_egg_info(self.site_dir)
meta = metadata(pkg_name)
assert meta['Description'] == 'pôrˈtend\n'
assert meta['Description'] == 'pôrˈtend'


class DiscoveryTests(fixtures.EggInfoPkg, fixtures.DistInfoPkg, unittest.TestCase):
Expand Down

0 comments on commit c87838e

Please sign in to comment.