Skip to content

Commit 5b860af

Browse files
committed
Fix/skip some failing tests
1 parent 15b894a commit 5b860af

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

test/test_environment.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ def test_overridden_path(tmp_path, capfd):
100100
"build_frontend",
101101
[
102102
pytest.param("pip", marks=utils.skip_if_pyodide("No pip for pyodide")),
103-
"build",
103+
pytest.param(
104+
"build",
105+
marks=utils.skip_if_pyodide(
106+
"pyodide doesn't support multiple values for PIP_CONSTRAINT"
107+
),
108+
),
104109
],
105110
)
106111
def test_overridden_pip_constraint(tmp_path, build_frontend):

test/test_pep518.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,19 @@ def test_pep518(tmp_path, build_frontend_env):
4545
assert not (project_dir / "42").exists()
4646
assert not (project_dir / "4.1.2").exists()
4747

48-
# pypa/build creates a "build" folder & a "*.egg-info" folder for the wheel being built,
49-
# this should be harmless so remove them
48+
# pypa/build creates a "build" folder & a "*.egg-info" folder for the
49+
# wheel being built, this should be harmless so remove them. Pyodide build
50+
# creates a ".pyodide_build" folder, but this is gitignored with a
51+
# .gitignore file inside.
5052
contents = [
5153
item
5254
for item in project_dir.iterdir()
53-
if item.name != "build" and not item.name.endswith(".egg-info")
55+
if item.name != "build"
56+
and not item.name.endswith(".egg-info")
57+
and item.name != ".pyodide_build"
5458
]
5559

60+
print("Project contents after build:")
61+
print("\n".join(f" {f}" for f in contents))
62+
5663
assert len(contents) == len(basic_project.files)

0 commit comments

Comments
 (0)