summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-15 17:57:14 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-08-15 17:57:14 +0100
commit16b3fad1b9fc26986eb8ddc7af717f0ba083b85d (patch)
treef41b83b851181d18dff4820639412258bd1e0ea6 /setuptools/tests
parent8b622be458dca9642548c00d0eb11166727d5d40 (diff)
downloadpython-setuptools-git-16b3fad1b9fc26986eb8ddc7af717f0ba083b85d.tar.gz
Improve glob pattern in test
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_editable_install.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/tests/test_editable_install.py b/setuptools/tests/test_editable_install.py
index 58a74100..c83e2e46 100644
--- a/setuptools/tests/test_editable_install.py
+++ b/setuptools/tests/test_editable_install.py
@@ -874,9 +874,8 @@ class TestCustomBuildWheel:
cmd = editable_wheel(dist)
cmd.ensure_finalized()
cmd.run()
- wheel_file = str(next(Path().glob('dist/*')))
+ wheel_file = str(next(Path().glob('dist/*.whl')))
assert "editable" in wheel_file
- assert wheel_file.endswith(".whl")
class TestCustomBuildExt:
@@ -900,7 +899,7 @@ class TestCustomBuildExt:
cmd = editable_wheel(dist)
cmd.ensure_finalized()
cmd.run()
- wheel_file = str(next(Path().glob('dist/*')))
+ wheel_file = str(next(Path().glob('dist/*.whl')))
assert "editable" in wheel_file
files = [p for p in Path().glob("module.*") if p.suffix != ".c"]
assert len(files) == 1