Skip to content

Commit

Permalink
fix: test_pep518 with pyodide
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 16, 2024
1 parent abcf749 commit f8f4904
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/test_pep518.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
setup_py_add=textwrap.dedent(
"""
# Will fail if PEP 518 does work
import requests
assert requests.__version__ == "2.27.0", "Requests found but wrong version ({0})".format(requests.__version__)
import jmespath
assert jmespath.__version__ == "1.0.0", "'jmespath' found but wrong version ({0})".format(jmespath.__version__)
# Just making sure environment is still set
import os
Expand All @@ -26,15 +26,13 @@
requires = [
"setuptools >= 42",
"setuptools_scm[toml]>=4.1.2",
"wheel",
"requests==2.27.0"
"jmespath==1.0.0"
]
build-backend = "setuptools.build_meta"
"""


@pytest.mark.xfail(condition=utils.platform == "pyodide", reason="unknown...", strict=True)
def test_pep518(tmp_path, build_frontend_env):
project_dir = tmp_path / "project"
basic_project.generate(project_dir)
Expand Down

0 comments on commit f8f4904

Please sign in to comment.