Skip to content

Commit

Permalink
Ignore ImportWarning in PyPy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Jan 5, 2023
1 parent 6b0e824 commit 25bc89d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Run the tests on pypy and Windows
if: ${{ startsWith(matrix.python-version, 'pypy') || startsWith(runner.os, 'Windows') }}
run: |
python -m pytest -vv
python -W ignore::ImportWarning -m pytest -vv
- name: Coverage
if: ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
run: |
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ filterwarnings = [
"module:There is no current event loop:DeprecationWarning",
#
"module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning",
# In PyPy/Cython: see https://github.com/yaml/pyyaml/issues/688
"ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning",
]

[tool.mypy]
Expand Down

0 comments on commit 25bc89d

Please sign in to comment.