File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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):
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
168168class DiscoveryTests (fixtures .EggInfoPkg , fixtures .DistInfoPkg , unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments