Skip to content

Commit

Permalink
skip 3.13 for some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Oct 20, 2024
1 parent e84c291 commit c7f2f39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
CI: true
RICH_COLUMNS: 120

jobs:
lint:
Expand Down
6 changes: 6 additions & 0 deletions tests/test_retrievers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import sys
from typing import Annotated

import pytest
Expand Down Expand Up @@ -106,6 +107,10 @@ def sphinx_style_docstring(foo: int, /) -> str: # pragma: no cover
return str(foo)


IS_PY313 = sys.version_info[:2] >= (3, 13)


@pytest.mark.skipif(IS_PY313, reason='https://github.com/mkdocstrings/griffe/issues/329')
def test_docstring_sphinx():
agent = Agent(FunctionModel(get_json_schema), deps=None)
agent.retriever_plain(sphinx_style_docstring)
Expand Down Expand Up @@ -139,6 +144,7 @@ def numpy_style_docstring(*, foo: int, bar: str) -> str: # pragma: no cover
return f'{foo} {bar}'


@pytest.mark.skipif(IS_PY313, reason='https://github.com/mkdocstrings/griffe/issues/329')
def test_docstring_numpy():
agent = Agent(FunctionModel(get_json_schema), deps=None)
agent.retriever_plain(numpy_style_docstring)
Expand Down

0 comments on commit c7f2f39

Please sign in to comment.