We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f78d73 commit 592a270Copy full SHA for 592a270
test/test_pep518.py
@@ -1,4 +1,3 @@
1
-import os
2
import textwrap
3
4
from . import test_projects, utils
@@ -50,4 +49,12 @@ def test_pep518(tmp_path, build_mode):
50
49
assert not (project_dir / "42").exists()
51
assert not (project_dir / "4.1.2").exists()
52
53
- assert len(os.listdir(project_dir)) == len(basic_project.files)
+ # pypa/build creates a "build" folder & a "*.egg-info" folder for the wheel being built,
+ # 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