Skip to content

Commit ec2be05

Browse files
[PR #8299/28d026eb backport][3.9] Create marker for internal tests (#8307)
**This is a backport of PR #8299 as merged into master (28d026e).** Co-authored-by: Sam Bull <[email protected]>
1 parent 292d961 commit ec2be05

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
@@ -171,3 +171,4 @@ junit_family=xunit2
171171
xfail_strict = true
172172
markers =
173173
dev_mode: mark test to run in dev mode.
174+
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)