Skip to content

Commit

Permalink
Create marker for internal tests (#8299)
Browse files Browse the repository at this point in the history
To help avoid issues with downstream packagers etc. we should disable a
few tests for them which are dependent on the CI environment.
  • Loading branch information
Dreamsorcerer authored Apr 7, 2024
1 parent 88c80c1 commit 28d026e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES/8299.packaging.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added an ``internal`` pytest marker for tests which should be skipped
by packagers (use ``-m 'not internal'`` to disable them) -- by :user:`Dreamsorcerer`.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,4 @@ junit_family=xunit2
xfail_strict = true
markers =
dev_mode: mark test to run in dev mode.
internal: tests which may cause issues for packagers, but should be run in aiohttp's CI.
1 change: 1 addition & 0 deletions tests/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_web___all__(pytester: pytest.Pytester) -> None:
}


@pytest.mark.internal
@pytest.mark.skipif(
not sys.platform.startswith("linux") or platform.python_implementation() == "PyPy",
reason="Timing is more reliable on Linux",
Expand Down

0 comments on commit 28d026e

Please sign in to comment.