File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def pkg_with_non_ascii_description(site_dir):
130
130
metadata_dir .mkdir ()
131
131
metadata = metadata_dir / 'METADATA'
132
132
with metadata .open ('w' , encoding = 'utf-8' ) as fp :
133
- fp .write ('Description: pôrˈtend\n ' )
133
+ fp .write ('Description: pôrˈtend' )
134
134
return 'portend'
135
135
136
136
@staticmethod
@@ -150,7 +150,7 @@ def pkg_with_non_ascii_description_egg_info(site_dir):
150
150
151
151
pôrˈtend
152
152
"""
153
- ).lstrip ()
153
+ ).strip ()
154
154
)
155
155
return 'portend'
156
156
@@ -162,7 +162,7 @@ def test_metadata_loads(self):
162
162
def test_metadata_loads_egg_info (self ):
163
163
pkg_name = self .pkg_with_non_ascii_description_egg_info (self .site_dir )
164
164
meta = metadata (pkg_name )
165
- assert meta ['Description' ] == 'pôrˈtend\n '
165
+ assert meta ['Description' ] == 'pôrˈtend'
166
166
167
167
168
168
class DiscoveryTests (fixtures .EggInfoPkg , fixtures .DistInfoPkg , unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments