Skip to content

Commit 592a270

Browse files
committed
fix: test/test_pep518.py
1 parent 6f78d73 commit 592a270

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/test_pep518.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import textwrap
32

43
from . import test_projects, utils
@@ -50,4 +49,12 @@ def test_pep518(tmp_path, build_mode):
5049
assert not (project_dir / "42").exists()
5150
assert not (project_dir / "4.1.2").exists()
5251

53-
assert len(os.listdir(project_dir)) == len(basic_project.files)
52+
# pypa/build creates a "build" folder & a "*.egg-info" folder for the wheel being built,
53+
# this should be harmless so remove them
54+
contents = [
55+
item
56+
for item in project_dir.iterdir()
57+
if item.name != "build" and not item.name.endswith(".egg-info")
58+
]
59+
60+
assert len(contents) == len(basic_project.files)

0 commit comments

Comments
 (0)