@@ -919,7 +919,7 @@ def test_license(self, tmpdir_cwd, env):
919
919
egg_info_dir = os .path .join ('.' , 'foo.egg-info' )
920
920
with open (os .path .join (egg_info_dir , 'PKG-INFO' )) as pkginfo_file :
921
921
pkg_info_lines = pkginfo_file .read ().split ('\n ' )
922
- assert 'License: MIT' == pkg_info_lines [ 7 ]
922
+ assert 'License: MIT' in pkg_info_lines
923
923
924
924
def test_license_escape (self , tmpdir_cwd , env ):
925
925
"""Test license is escaped correctly if longer than one line."""
@@ -934,8 +934,10 @@ def test_license_escape(self, tmpdir_cwd, env):
934
934
egg_info_dir = os .path .join ('.' , 'foo.egg-info' )
935
935
with open (os .path .join (egg_info_dir , 'PKG-INFO' )) as pkginfo_file :
936
936
pkg_info_lines = pkginfo_file .read ().split ('\n ' )
937
- assert 'License: This is a long license text ' == pkg_info_lines [7 ]
938
- assert ' over multiple lines' == pkg_info_lines [8 ]
937
+
938
+ assert 'License: This is a long license text ' in pkg_info_lines
939
+ assert ' over multiple lines' in pkg_info_lines
940
+ assert 'text \n over multiple' in '\n ' .join (pkg_info_lines )
939
941
940
942
def test_python_requires_egg_info (self , tmpdir_cwd , env ):
941
943
self ._setup_script_with_requires (
0 commit comments