Skip to content

Commit

Permalink
Avoid importing a test inside other test
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Feb 12, 2022
1 parent 3d56521 commit f8453aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setuptools/tests/test_config_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from setuptools.dist import Distribution

from .contexts import quiet
from .test_find_packages import ensure_files
from .integration.helpers import get_sdist_members, get_wheel_members, run


Expand Down Expand Up @@ -118,7 +117,10 @@ def _populate_project_dir(root, files, options):
(root / "README.md").write_text("# Example Package")
(root / "LICENSE").write_text("Copyright (c) 2018")
_write_setupcfg(root, options)
ensure_files(root, files)
paths = (root / f for f in files)
for path in paths:
path.parent.mkdir(exist_ok=True, parents=True)
path.touch()


def _write_setupcfg(root, options):
Expand Down

0 comments on commit f8453aa

Please sign in to comment.