@@ -1064,7 +1064,7 @@ def test_metadata_version(self, tmpdir_cwd, env):
1064
1064
with open (os .path .join (egg_info_dir , 'PKG-INFO' ), encoding = "utf-8" ) as fp :
1065
1065
pkg_info_lines = fp .read ().split ('\n ' )
1066
1066
# Update metadata version if changed
1067
- assert self ._extract_mv_version (pkg_info_lines ) == (2 , 1 )
1067
+ assert self ._extract_mv_version (pkg_info_lines ) == (2 , 2 )
1068
1068
1069
1069
def test_long_description_content_type (self , tmpdir_cwd , env ):
1070
1070
# Test that specifying a `long_description_content_type` keyword arg to
@@ -1091,7 +1091,7 @@ def test_long_description_content_type(self, tmpdir_cwd, env):
1091
1091
pkg_info_lines = fp .read ().split ('\n ' )
1092
1092
expected_line = 'Description-Content-Type: text/markdown'
1093
1093
assert expected_line in pkg_info_lines
1094
- assert 'Metadata-Version: 2.1 ' in pkg_info_lines
1094
+ assert 'Metadata-Version: 2.2 ' in pkg_info_lines
1095
1095
1096
1096
def test_long_description (self , tmpdir_cwd , env ):
1097
1097
# Test that specifying `long_description` and `long_description_content_type`
@@ -1110,7 +1110,7 @@ def test_long_description(self, tmpdir_cwd, env):
1110
1110
egg_info_dir = os .path .join ('.' , 'foo.egg-info' )
1111
1111
with open (os .path .join (egg_info_dir , 'PKG-INFO' ), encoding = "utf-8" ) as fp :
1112
1112
pkg_info_lines = fp .read ().split ('\n ' )
1113
- assert 'Metadata-Version: 2.1 ' in pkg_info_lines
1113
+ assert 'Metadata-Version: 2.2 ' in pkg_info_lines
1114
1114
assert '' == pkg_info_lines [- 1 ] # last line should be empty
1115
1115
long_desc_lines = pkg_info_lines [pkg_info_lines .index ('' ) :]
1116
1116
assert 'This is a long description' in long_desc_lines
0 commit comments