Skip to content

Commit c87838e

Browse files
committed
Update test to make the results consistent.
1 parent 84fd013 commit c87838e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def pkg_with_non_ascii_description(site_dir):
130130
metadata_dir.mkdir()
131131
metadata = metadata_dir / 'METADATA'
132132
with metadata.open('w', encoding='utf-8') as fp:
133-
fp.write('Description: pôrˈtend\n')
133+
fp.write('Description: pôrˈtend')
134134
return 'portend'
135135

136136
@staticmethod
@@ -150,7 +150,7 @@ def pkg_with_non_ascii_description_egg_info(site_dir):
150150
151151
pôrˈtend
152152
"""
153-
).lstrip()
153+
).strip()
154154
)
155155
return 'portend'
156156

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

167167

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

0 commit comments

Comments
 (0)