WIP: #9298-debug
This commit is contained in:
parent
3dc17f1c3b
commit
fa3e08dece
|
@ -4,6 +4,7 @@ import glob
|
||||||
import importlib
|
import importlib
|
||||||
import marshal
|
import marshal
|
||||||
import os
|
import os
|
||||||
|
import pprint
|
||||||
import py_compile
|
import py_compile
|
||||||
import stat
|
import stat
|
||||||
import sys
|
import sys
|
||||||
|
@ -1734,7 +1735,7 @@ class TestPyCacheDir:
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Integration test for sys.pycache_prefix (#4730)."""
|
"""Integration test for sys.pycache_prefix (#4730)."""
|
||||||
pycache_prefix = tmp_path / "my/pycs"
|
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)
|
monkeypatch.setattr(sys, "dont_write_bytecode", False)
|
||||||
|
|
||||||
pytester.makepyfile(
|
pytester.makepyfile(
|
||||||
|
@ -1748,6 +1749,8 @@ class TestPyCacheDir:
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
result = pytester.runpytest()
|
result = pytester.runpytest()
|
||||||
|
pprint.pprint(list(tmp_path.glob("**")))
|
||||||
|
|
||||||
assert result.ret == 0
|
assert result.ret == 0
|
||||||
|
|
||||||
test_foo = pytester.path.joinpath("src/test_foo.py")
|
test_foo = pytester.path.joinpath("src/test_foo.py")
|
||||||
|
|
Loading…
Reference in New Issue