Skip to content
Open
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 @@ -128,6 +128,7 @@ addopts = "-ra -m 'not hdfs' -p no:pytest-mypy-plugins"
markers = [
"hdfs: mark test as hdfs",
"pathlib: mark cpython pathlib tests",
"natwork: mark test as requiring access to the internet",
]

[tool.coverage.run]
Expand Down
15 changes: 9 additions & 6 deletions upath/tests/implementations/test_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
from ..utils import OverrideMeta
from ..utils import overrides_base

pytestmark = pytest.mark.skipif(
os.environ.get("CI", False)
and not (
platform.system() == "Linux" and sys.version_info[:2] in {(3, 9), (3, 13)}
pytestmark = [
pytest.mark.skipif(
os.environ.get("CI", False)
and not (
platform.system() == "Linux" and sys.version_info[:2] in {(3, 9), (3, 13)}
),
reason="Skipping GitHubPath tests to prevent rate limiting on GitHub API.",
),
reason="Skipping GitHubPath tests to prevent rate limiting on GitHub API.",
)
pytest.mark.network,
]


def xfail_on_github_connection_error(func):
Expand Down
1 change: 1 addition & 0 deletions upath/tests/implementations/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
except ImportError:
pytestmark = pytest.mark.skip

pytestmark = pytest.mark.network

@pytest.fixture
def internet_connection():
Expand Down