From 361edf2199e9041ac9ae07f188f11f1012d4b27d Mon Sep 17 00:00:00 2001 From: Joseph Roitman Date: Fri, 10 Nov 2023 19:02:38 +0200 Subject: [PATCH] Fix PytestAssertRewriteWarning in tests when run in PyPy on Github Actions. See https://github.com/pytest-dev/pytest/issues/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) ``` --- tox.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/tox.ini b/tox.ini index f8412ad..b4a1c95 100644 --- a/tox.ini +++ b/tox.ini @@ -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}