Skip to content

Commit 28d026e

Browse files
Create marker for internal tests (#8299)
To help avoid issues with downstream packagers etc. we should disable a few tests for them which are dependent on the CI environment.
1 parent 88c80c1 commit 28d026e

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGES/8299.packaging.rst

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added an ``internal`` pytest marker for tests which should be skipped
2+
by packagers (use ``-m 'not internal'`` to disable them) -- by :user:`Dreamsorcerer`.

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,4 @@ junit_family=xunit2
170170
xfail_strict = true
171171
markers =
172172
dev_mode: mark test to run in dev mode.
173+
internal: tests which may cause issues for packagers, but should be run in aiohttp's CI.

tests/test_imports.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_web___all__(pytester: pytest.Pytester) -> None:
3333
}
3434

3535

36+
@pytest.mark.internal
3637
@pytest.mark.skipif(
3738
not sys.platform.startswith("linux") or platform.python_implementation() == "PyPy",
3839
reason="Timing is more reliable on Linux",

0 commit comments

Comments
 (0)