Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ markers = [
"fortran: Fortran code",
"integration: Full package build",
"isolated: Needs an isolated virtualenv",
"network: Needs a network connection to setup or run",
"setuptools: Tests setuptools integration",
"virtualenv: Needs a virtualenv",
]
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
if "isolated" in getattr(item, "fixturenames", ()):
item.add_marker(pytest.mark.virtualenv)
item.add_marker(pytest.mark.isolated)
item.add_marker(pytest.mark.network)


def pytest_report_header() -> str:
Expand Down
1 change: 1 addition & 0 deletions tests/test_fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
@pytest.mark.compile()
@pytest.mark.configure()
@pytest.mark.fortran()
@pytest.mark.network()
@pytest.mark.skipif(shutil.which("gfortran") is None, reason="gfortran not available")
@pytest.mark.skipif(
sysconfig.get_platform().startswith("win"),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pyproject_pep518.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import pytest


@pytest.mark.isolated()
@pytest.mark.network()
@pytest.mark.integration()
def test_pep518_sdist(package_simple_pyproject_ext):
correct_metadata = textwrap.dedent(
Expand Down