Skip to content

Commit

Permalink
Fix PytestAssertRewriteWarning in tests when run in PyPy on Github Ac…
Browse files Browse the repository at this point in the history
…tions.

See pytest-dev/pytest#1934.

Error message:
```
../../../../home/runner/work/pytest-snapshot/pytest-snapshot/.tox/pypy3-pytest6/lib/pypy3.10/site-packages/_pytest/config/__init__.py:1114
  /home/runner/work/pytest-snapshot/pytest-snapshot/.tox/pypy3-pytest6/lib/pypy3.10/site-packages/_pytest/config/__init__.py:1114: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_snapshot
    self._mark_plugins_for_rewrite(hook)
```
  • Loading branch information
joseph-roitman committed Nov 10, 2023
1 parent f705604 commit 361edf2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ deps =
setenv =
coverage: TEST_RUNNER=coverage run -m pytest

usedevelop = True
commands =
coverage: coverage erase
{env:TEST_RUNNER:pytest} {posargs:tests}
Expand Down

0 comments on commit 361edf2

Please sign in to comment.