Skip to content

Commit

Permalink
WIP: pytest-dev#9298-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Nov 17, 2021
1 parent 3dc17f1 commit 82c3d31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testing/test_assertrewrite.py
Expand Up @@ -4,6 +4,7 @@
import importlib
import marshal
import os
import pprint
import py_compile
import stat
import sys
Expand Down Expand Up @@ -1734,7 +1735,7 @@ def test_sys_pycache_prefix_integration(
) -> None:
"""Integration test for sys.pycache_prefix (#4730)."""
pycache_prefix = tmp_path / "my/pycs"
monkeypatch.setattr(sys, "pycache_prefix", str(pycache_prefix))
monkeypatch.setattr(sys, "pycache_prefix", os.fspath(pycache_prefix))
monkeypatch.setattr(sys, "dont_write_bytecode", False)

pytester.makepyfile(
Expand All @@ -1748,6 +1749,8 @@ def test_foo():
}
)
result = pytester.runpytest()
pprint.pprint(list(tmp_path.visit("**")))

assert result.ret == 0

test_foo = pytester.path.joinpath("src/test_foo.py")
Expand Down

0 comments on commit 82c3d31

Please sign in to comment.