Skip to content

Commit

Permalink
[PR #8299/28d026eb backport][3.9] Create marker for internal tests (#…
Browse files Browse the repository at this point in the history
…8307)

**This is a backport of PR #8299 as merged into master
(28d026e).**

Co-authored-by: Sam Bull <git@sambull.org>
  • Loading branch information
patchback[bot] and Dreamsorcerer authored Apr 7, 2024
1 parent 292d961 commit ec2be05
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 @@ -171,3 +171,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 ec2be05

Please sign in to comment.