Skip to content

Commit

Permalink
Merge pull request #360 from kurtmckee/fix-pypy-importwarnings
Browse files Browse the repository at this point in the history
Ignore an `ImportWarning` in PyPy 3.7 on Linux
  • Loading branch information
kurtmckee committed Apr 11, 2023
2 parents 3803b58 + c0f94a4 commit ff13dae
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,16 @@ directory = "htmlcov/"
[tool.pytest.ini_options]
filterwarnings = [
"error",

# PyPy on Linux triggers an ImportWarning from within pyyaml,
# which is used by the `responses` package in the test suite:
#
# yaml/_yaml.pyx:2: in init yaml._yaml
# can't resolve package from __spec__ or __package__,
# falling back on __name__ and __path__
#
# https://github.com/yaml/pyyaml/issues/534
# https://github.com/cython/cython/issues/1720
#
"ignore::ImportWarning",
]

0 comments on commit ff13dae

Please sign in to comment.