Skip to content

Commit

Permalink
Prevent resource warnings in test_apply_pyprojecttoml
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko <[email protected]>
  • Loading branch information
abravalheri and webknjaz committed Feb 9, 2022
1 parent e2b4e3a commit f0f5730
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setuptools/tests/config/test_apply_pyprojecttoml.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ def download(url, dest):


def core_metadata(dist) -> str:
buffer = io.StringIO()
dist.metadata.write_pkg_file(buffer)
value = "\n".join(buffer.getvalue().strip().splitlines())
with io.StringIO() as buffer:
dist.metadata.write_pkg_file(buffer)
value = "\n".join(buffer.getvalue().strip().splitlines())

# ---- DIFF NORMALISATION ----
# PEP 621 is very particular about author/maintainer metadata conversion, so skip
Expand Down

0 comments on commit f0f5730

Please sign in to comment.