diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-04-15 23:10:40 +0200 |
---|---|---|
committer | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-05-22 13:17:36 +0200 |
commit | 1069ae4e3554a8828075a83dedc77e0e212637c7 (patch) | |
tree | 65f46fffa1dad841055331d7443efed628b4dc32 | |
parent | d1a491ec8144ba856b74467b551eab359e86b659 (diff) | |
download | python-setuptools-git-1069ae4e3554a8828075a83dedc77e0e212637c7.tar.gz |
Small changes after review
-rw-r--r-- | setuptools/tests/test_egg_info.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py index d0183eef..22e970a4 100644 --- a/setuptools/tests/test_egg_info.py +++ b/setuptools/tests/test_egg_info.py @@ -884,21 +884,17 @@ class TestEggInfo: "long_description='This is a long description\\nover multiple lines'," "long_description_content_type='text/markdown'," ) - environ = os.environ.copy().update( - HOME=env.paths['home'], - ) code, data = environment.run_setup_py( cmd=['egg_info'], pypath=os.pathsep.join([env.paths['lib'], str(tmpdir_cwd)]), data_stream=1, - env=environ, ) egg_info_dir = os.path.join('.', 'foo.egg-info') with open(os.path.join(egg_info_dir, 'PKG-INFO')) as pkginfo_file: pkg_info_lines = pkginfo_file.read().split('\n') assert 'Metadata-Version: 2.1' in pkg_info_lines assert '' == pkg_info_lines[-1] - long_desc_lines = pkg_info_lines[pkg_info_lines.index(''):] + long_desc_lines = pkg_info_lines[8:] assert 'This is a long description' in long_desc_lines assert 'over multiple lines' in long_desc_lines |