From c87838e1ca29a80519a09d966cfdc9f5043699b7 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 17 Apr 2021 20:29:07 -0400 Subject: [PATCH] Update test to make the results consistent. --- tests/test_main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index d4c3cab6..e7ac4b20 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -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 @@ -150,7 +150,7 @@ def pkg_with_non_ascii_description_egg_info(site_dir): pôrˈtend """ - ).lstrip() + ).strip() ) return 'portend' @@ -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):