Skip to content

TestPyCacheDir.test_sys_pycache_prefix_integration fails on Windows / Python 3.9 #9298

Open
@The-Compiler

Description

@The-Compiler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: windowswindows platform-specific problemtopic: rewriterelated to the assertion rewrite mechanismtype: selftestsa problem in the tests of pytest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions