Open
Description
See https://github.com/pytest-dev/pytest/actions/runs/1448359677 and https://github.com/pytest-dev/pytest/actions/runs/1449499760:
# test file: rewritten, custom pytest cache tag
test_foo_pyc = get_cache_dir(test_foo) / ("test_foo" + PYC_TAIL)
> assert test_foo_pyc.is_file()
E AssertionError: assert False
E + where False = <bound method Path.is_file of WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-0/pope...n/pytest-0/popen-gw0/test_sys_pycache_prefix_integration0/src/test_foo.cpython-39-pytest-7.0.0.dev312+g17b38259f.pyc')>()
#9294 was a doc-fix only though... Test introduced in #5864 for #4730.