Skip to content

Commit

Permalink
Don't test with numpy on Python >3.12. #341
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon24 committed Jun 26, 2024
1 parent 0941c43 commit 6a456ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ tests = [
'lxml; (implementation_name != "pypy" and python_version <= "3.12")',
"html5lib",
# for bench.py
'numpy; (implementation_name != "pypy" and os_name == "posix")',
'numpy; (implementation_name != "pypy" and os_name == "posix" and python_version <= "3.12")',
# mypy does not work on pypy (yet).
'mypy; implementation_name != "pypy"',
"types-requests",
Expand Down
8 changes: 2 additions & 6 deletions tests/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
from bench import cli


pytestmark = [
pytest.mark.slow,
pytest.mark.skipif("os.name != 'posix'"),
# risks triggering sqlite3.InterfaceError: Error binding parameter ...
pytest.mark.skipif("sys.implementation.name == 'pypy'"),
]
pytestmark = pytest.mark.slow
pytest.importorskip("numpy")


@pytest.fixture(scope='module')
Expand Down

0 comments on commit 6a456ef

Please sign in to comment.